A collection of commands to obtain information from Sitecore instances on Azure PaaS via Kudu.
Install-Module -Name SitecoreAzureKuduTools
Download full App Service file contents.
This function will download all files from in a given Resource.
Get -SitecoreFileBackup [ -ResourceSubscriptionId ] <String> [ -ResourceGroupName ] <String> [ -ResourceName ] <String> [<CommonParameters>] |
Name | Alias | Required? | Pipeline Input |
---|---|---|---|
-ResourceSubscriptionId | ID | true | false |
-ResourceGroupName | Group | true | false |
-ResourceName | Name | true | false |
-DestinationPath | Path | false | false |
Get -SitecoreFileBackup -ResourceSubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "xx-xxxxxxxxxx-XP2-SMALL-PRD1" -ResourceName "xx-xxxxxxxxxx-xp2-small-prd1-cd" |
Get -SitecoreFileBackup -ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Group "xx-xxxxxxxxxx-XP2-SMALL-PRD1" -Name "xx-xxxxxxxxxx-xp2-small-prd1-cd" |
Remotely generate a Sitecore Support Package
This function will download and zip files defined for Sitecore Support Packages:
https://kb.sitecore.net/articles/406145
> \App_Config\*
> \Logs\*
> eventlog.xml
> Global.asax
> license.xml
> sitecore.version.xml
> Web.config
Get -SitecoreSupportPackage [ -ResourceSubscriptionId ] <String> [ -ResourceGroupName ] <String> [ -ResourceName ] <String> [ -LogDaysBack ] <Int32> [<CommonParameters>] |
Name | Alias | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
-ResourceSubscriptionId | ID | true | false | |
-ResourceGroupName | Group | true | false | |
-ResourceName | Name | true | false | |
-LogDaysBack | LogDays | true | false | 0 |
-DestinationPath | Path | false | false |
Get -SitecoreSupportPackage -ResourceSubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "xx-xxxxxxxxxx-XP2-SMALL-PRD1" -ResourceName "xx-xxxxxxxxxx-xp2-small-prd1-cd" -LogDaysBack 1 |
Get -SitecoreSupportPackage -ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Group "xx-xxxxxxxxxx-XP2-SMALL-PRD1" -Name "xx-xxxxxxxxxx-xp2-small-prd1-cd" -LogDays 1 |
Verify Certificate Thumbprints across Sitecore Azure PaaS using Kudu
This function will download ConnectionStrings.config and AppSettings.config files from all App Services in a given
Resource Group, then display any certificate thumbprints discrepencies.
Invoke -SitecoreThumbprintValidation [ -ResourceSubscriptionId ] <String> [ -ResourceGroupName ] <String> [<CommonParameters>] |
Name | Alias | Required? | Pipeline Input |
---|---|---|---|
-ResourceSubscriptionId | ID | true | false |
-ResourceGroupName | Group | true | false |
-DestinationPath | Path | false | false |
Invoke -SitecoreThumbprintValidation -ResourceSubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "xx-xxxxxxxxxx-XP2-SMALL-PRD1" |
Invoke -SitecoreThumbprintValidation -ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Group "xx-xxxxxxxxxx-XP2-SMALL-PRD1" |
Remove-Module SitecoreAzureKuduTools -Force -ErrorAction SilentlyContinue
Uninstall-Module SitecoreAzureKuduTools -Force -ErrorAction SilentlyContinue
[Environment]::SetEnvironmentVariable("PSModulePath", [Environment]::GetEnvironmentVariable("PSModulePath", "Machine") + ";$($(Get-Location).Path)", "Machine")
cd .\SitecoreAzureKuduTools\1.0.2\
Import-Module .\SitecoreAzureKuduTools.psd1
When making changes, use the following command to reload the module:
Remove-Module SitecoreAzureKuduTools -Force | Clear-History | Import-Module SitecoreAzureKuduTools