diff --git a/src/Websites/Websites/help/Add-AzWebAppAccessRestrictionRule.md b/src/Websites/Websites/help/Add-AzWebAppAccessRestrictionRule.md index e1db5fdcf773..f877348dcd07 100644 --- a/src/Websites/Websites/help/Add-AzWebAppAccessRestrictionRule.md +++ b/src/Websites/Websites/help/Add-AzWebAppAccessRestrictionRule.md @@ -50,7 +50,7 @@ The **Add-AzWebAppAccessRestrictionRule** cmdlet adds an Access Restriction rule ### Example 1: Add IpAddress Access Restriction rule to a Web App ```powershell -Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" +Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" ` -Name IpRule -Priority 200 -Action Allow -IpAddress 10.10.0.0/8 ``` @@ -58,7 +58,7 @@ This command adds an access restriction rule with priority 200 and ip range to a ### Example 2: Add Subnet Service Endpoint Access Restriction rule to a Web App ```powershell -Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" +Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" ` -Name SubnetRule -Priority 300 -Action Allow -SubnetName appgw-subnet -VirtualNetworkName corp-vnet ``` @@ -66,7 +66,7 @@ This command adds an access restriction rule with priority 300 and with subnet a ### Example 3: Add ServiceTag Access Restriction rule to a Web App ```powershell -Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" +Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" ` -Name ServiceTagRule -Priority 200 -Action Allow -ServiceTag AzureFrontDoor.Backend ``` @@ -74,7 +74,7 @@ This command adds an access restriction rule with priority 200 and a Service Tag ### Example 4: Add multi-address Access Restriction rule to a Web App ```powershell -Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" +Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" ` -Name MultipleIpRule -Priority 200 -Action Allow -IpAddress "10.10.0.0/8,192.168.0.0/16" ``` @@ -82,8 +82,8 @@ This command adds an access restriction rule with priority 200 and two ip ranges ### Example 5: Add Access Restriction rule with http header to a Web App ```powershell -Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" --Name MultipleIpRule -Priority 400 -Action Allow -ServiceTag AzureFrontDoor.Backend +Add-AzWebAppAccessRestrictionRule -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" ` +-Name MultipleIpRule -Priority 400 -Action Allow -ServiceTag AzureFrontDoor.Backend ` -HttpHeader @{'x-forwarded-host' = 'www.contoso.com', 'app.contoso.com'; 'x-azure-fdid' = '355deb06-47c4-4ba4-9641-c7d7a98b913e'} ``` diff --git a/src/Websites/Websites/help/Add-AzWebAppTrafficRouting.md b/src/Websites/Websites/help/Add-AzWebAppTrafficRouting.md index 72698caf17af..5b72940475df 100644 --- a/src/Websites/Websites/help/Add-AzWebAppTrafficRouting.md +++ b/src/Websites/Websites/help/Add-AzWebAppTrafficRouting.md @@ -30,8 +30,7 @@ This command adds a routing rule to transfer 15% of production traffice to Stg ### Example 2: Add a routing rule to transfer the production traffice to Stg slot ranges from 50% to 90% in incremental manner. ```powershell -Add-AzWebAppTrafficRouting -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" -RoutingRule @{ActionHostName='XXXX.azurewebsites.net';ReroutePercentage=50;ChangeIntervalInMinutes=1; -MinReroutePercentage=50;MaxReroutePercentage=90;Name='Stg';ChangeStep=10} +Add-AzWebAppTrafficRouting -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" -RoutingRule @{ActionHostName='XXXX.azurewebsites.net';ReroutePercentage=50;ChangeIntervalInMinutes=1;MinReroutePercentage=50;MaxReroutePercentage=90;Name='Stg';ChangeStep=10} ``` This command adds a routing rule to transfer the production traffice to Stg slot ranges from 50% to 90% in incremental manner. diff --git a/src/Websites/Websites/help/Get-AzStaticWebApp.md b/src/Websites/Websites/help/Get-AzStaticWebApp.md index 559901abf467..a3a7e01b8ffc 100644 --- a/src/Websites/Websites/help/Get-AzStaticWebApp.md +++ b/src/Websites/Websites/help/Get-AzStaticWebApp.md @@ -83,7 +83,7 @@ This commands gets a static web application by name. ### Example 4: Get a static web application by pipeline ```powershell -New-AzStaticWebApp -ResourceGroupName azure-rg-test -Name staticweb-pwsh01 -Location eastus2 -RepositoryUrl 'https://github.com/username/RepoName' -RepositoryToken 'repoToken123' -Branch 'master' -AppLocation 'Client' -ApiLocation 'Api' -OutputLocation 'wwwroot' -SkuName 'free' | Get-AzStaticWebApp -InputObject +New-AzStaticWebApp -ResourceGroupName azure-rg-test -Name staticweb-pwsh01 -Location eastus2 -RepositoryUrl 'https://github.com/username/RepoName' -RepositoryToken 'repoToken123' -Branch 'master' -AppLocation 'Client' -ApiLocation 'Api' -OutputLocation 'wwwroot' -SkuName 'free' | Get-AzStaticWebApp ``` ```output diff --git a/src/Websites/Websites/help/Get-AzWebAppContinuousWebJob.md b/src/Websites/Websites/help/Get-AzWebAppContinuousWebJob.md index 1ca1b306b782..49b3a1e193c9 100644 --- a/src/Websites/Websites/help/Get-AzWebAppContinuousWebJob.md +++ b/src/Websites/Websites/help/Get-AzWebAppContinuousWebJob.md @@ -37,8 +37,9 @@ Get or list continuous web for an app. ### Example 1: List continuous webs for an app ```powershell -PS C:\> Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 - +Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/continuousjob-01 webjob-rg-test @@ -49,8 +50,9 @@ This command lists continuous webs for an app. ### Example 2: Get continuous web for an app ```powershell -PS C:\> Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 - +Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/continuousjob-01 webjob-rg-test @@ -60,10 +62,11 @@ This command gets continuous web for an app. ### Example 3: Get continuous web for an app by pipeline ```powershell -PS C:\> $webjob = Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 -PS C:\> Start-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 -PS C:\> $webjob.Id | Get-AzWebAppContinuousWebJob - +$webjob = Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 +Start-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 +$webjob.Id | Get-AzWebAppContinuousWebJob +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/continuousjob-01 webjob-rg-test diff --git a/src/Websites/Websites/help/Get-AzWebAppSlotContinuousWebJob.md b/src/Websites/Websites/help/Get-AzWebAppSlotContinuousWebJob.md index b99833a4fb7e..e96b83c83e8b 100644 --- a/src/Websites/Websites/help/Get-AzWebAppSlotContinuousWebJob.md +++ b/src/Websites/Websites/help/Get-AzWebAppSlotContinuousWebJob.md @@ -37,8 +37,9 @@ Get or list continuous web for a deployment slot. ### Example 1: List continuous webs for a deployment slot ```powershell -PS C:\> Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 - +Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/slot01/slotcontinuousjob-03 webjob-rg-test @@ -49,8 +50,9 @@ This command lists continuous webs for a deployment slot. ### Example 2: Get continuous web for a deployment slot ```powershell -PS C:\> Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-03 - +Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-03 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/slot01/slotcontinuousjob-03 webjob-rg-test @@ -60,10 +62,11 @@ This command gets continuous web for a deployment slot. ### Example 3: Get continuous web for a deployment slot by pipeline ```powershell -PS C:\> $webjob = Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-03 -PS C:\> Start-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-03 -PS C:\> $webjob.Id | Get-AzWebAppSlotContinuousWebJob - +$webjob = Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-03 +Start-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-03 +$webjob.Id | Get-AzWebAppSlotContinuousWebJob +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/slot01/slotcontinuousjob-03 webjob-rg-test diff --git a/src/Websites/Websites/help/Get-AzWebAppSlotTriggeredWebJob.md b/src/Websites/Websites/help/Get-AzWebAppSlotTriggeredWebJob.md index 50938212561a..c13b91964e0f 100644 --- a/src/Websites/Websites/help/Get-AzWebAppSlotTriggeredWebJob.md +++ b/src/Websites/Websites/help/Get-AzWebAppSlotTriggeredWebJob.md @@ -37,8 +37,9 @@ Get or list triggered web for a deployment slot. ### Example 1: List triggered webs for a deployment slot ```powershell -PS C:\> Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 - +Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/slot01/slottriggeredjob-03 webjob-rg-test @@ -49,8 +50,9 @@ This command lists triggered webs for a deployment slot. ### Example 2: Get triggered web for a deployment slot ```powershell -PS C:\> Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 - +Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/slot01/slottriggeredjob-03 webjob-rg-test @@ -60,10 +62,11 @@ This command gets triggered web for a deployment slot. ### Example 3: Get triggered web for a deployment slot by pipeline ```powershell -PS C:\> $webjob = Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 -PS C:\> Start-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 -PS C:\> $webjob.Id | Get-AzWebAppSlotTriggeredWebJob - +$webjob = Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 +Start-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 +$webjob.Id | Get-AzWebAppSlotTriggeredWebJob +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/slot01/slottriggeredjob-03 webjob-rg-test diff --git a/src/Websites/Websites/help/Get-AzWebAppSlotTriggeredWebJobHistory.md b/src/Websites/Websites/help/Get-AzWebAppSlotTriggeredWebJobHistory.md index 29e5da45f267..69dbee29d5e2 100644 --- a/src/Websites/Websites/help/Get-AzWebAppSlotTriggeredWebJobHistory.md +++ b/src/Websites/Websites/help/Get-AzWebAppSlotTriggeredWebJobHistory.md @@ -38,8 +38,9 @@ Get or list triggered web job's history for a deployment slot. ### Example 1: List triggered web job's history for a deployment slot ```powershell -PS C:\> Get-AzWebAppSlotTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 - +Get-AzWebAppSlotTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 +``` +```output Kind Name ResourceGroupName ---- ---- ----------------- appService-test01/slot01/slottriggeredjob-03/202201040202032401 webjob-rg-test @@ -49,8 +50,9 @@ This command list triggered web job's history for a deployment slot. ### Example 2: Get triggered web job's history for a deployment slot ```powershell -PS C:\> Get-AzWebAppSlotTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 -Id 202201040202032401 - +Get-AzWebAppSlotTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 -Id 202201040202032401 +``` +```output Kind Name ResourceGroupName ---- ---- ----------------- appService-test01/slot01/slottriggeredjob-03/202201040202032401 webjob-rg-test @@ -60,9 +62,10 @@ This command get triggered web job's history for a deployment slot. ### Example 3: Get triggered web job's history for a deployment slot by pipeline ```powershell -PS C:\> $jobs = Get-AzWebAppSlotTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 -PS C:\> $jobs[0].Id | Get-AzWebAppSlotTriggeredWebJobHistory - +$jobs = Get-AzWebAppSlotTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 +$jobs[0].Id | Get-AzWebAppSlotTriggeredWebJobHistory +``` +```output Kind Name ResourceGroupName ---- ---- ----------------- appService-test01/slot01/slottriggeredjob-03/202201040202032401 webjob-rg-test diff --git a/src/Websites/Websites/help/Get-AzWebAppSlotWebJob.md b/src/Websites/Websites/help/Get-AzWebAppSlotWebJob.md index 46f300e837ac..27f5d40c14e4 100644 --- a/src/Websites/Websites/help/Get-AzWebAppSlotWebJob.md +++ b/src/Websites/Websites/help/Get-AzWebAppSlotWebJob.md @@ -24,8 +24,9 @@ List webjobs for a deployment slot. ### Example 1: List webjobs for a deployment slot ```powershell -PS C:\> Get-AzWebAppSlotWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 - +Get-AzWebAppSlotWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/slot01/slottriggeredjob-03 webjob-rg-test diff --git a/src/Websites/Websites/help/Get-AzWebAppTriggeredWebJob.md b/src/Websites/Websites/help/Get-AzWebAppTriggeredWebJob.md index cd5070ef23c3..f02b89986480 100644 --- a/src/Websites/Websites/help/Get-AzWebAppTriggeredWebJob.md +++ b/src/Websites/Websites/help/Get-AzWebAppTriggeredWebJob.md @@ -37,8 +37,9 @@ Get or list triggered web for an app. ### Example 1: List triggered webs for an app ```powershell -PS C:\> Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 - +Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/triggeredjob-01 webjob-rg-test @@ -49,8 +50,9 @@ This command lists triggered webs for an app. ### Example 2: Get triggered web for an app ```powershell -PS C:\> Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 - +Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/triggeredjob-01 webjob-rg-test @@ -60,10 +62,11 @@ This command gets triggered web for an app. ### Example 3: Get triggered web for an app by pipeline ```powershell -PS C:\> $webjob = Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 -PS C:\> Start-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 -PS C:\> $webjob.Id | Get-AzWebAppTriggeredWebJob - +$webjob = Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 +Start-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 +$webjob.Id | Get-AzWebAppTriggeredWebJob +``` +```output Name Kind WebJobType ResourceGroupName ---- ---- ---------- ----------------- appService-test01/triggeredjob-01 webjob-rg-test diff --git a/src/Websites/Websites/help/Get-AzWebAppTriggeredWebJobHistory.md b/src/Websites/Websites/help/Get-AzWebAppTriggeredWebJobHistory.md index a4ef5ad02cae..ca5dba90a20c 100644 --- a/src/Websites/Websites/help/Get-AzWebAppTriggeredWebJobHistory.md +++ b/src/Websites/Websites/help/Get-AzWebAppTriggeredWebJobHistory.md @@ -37,8 +37,9 @@ Get or list triggered web job's history for an app. ### Example 1: List triggered web job's history for an app ```powershell -PS C:\> Get-AzWebAppTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 - +Get-AzWebAppTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 +``` +```output Kind Name ResourceGroupName ---- ---- ----------------- appService-test01/triggeredjob-01/202201040249386155 webjob-rg-test @@ -49,8 +50,9 @@ This command lists triggered web job's history for an app. ### Example 2: Get triggered web job's history for an app ```powershell -PS C:\> Get-AzWebAppTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 -Id 202201040236300466 - +Get-AzWebAppTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 -Id 202201040236300466 +``` +```output Kind Name ResourceGroupName ---- ---- ----------------- appService-test01/triggeredjob-01/202201040236300466 webjob-rg-test @@ -60,9 +62,10 @@ This command get triggered web job's history for an app. ### Example 3: Get triggered web job's history for an app by pipeline ```powershell -PS C:\> $logs = Get-AzWebAppTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 -PS C:\> $logs[0].Id | Get-AzWebAppTriggeredWebJobHistory - +$logs = Get-AzWebAppTriggeredWebJobHistory -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 +$logs[0].Id | Get-AzWebAppTriggeredWebJobHistory +``` +```output Kind Name ResourceGroupName ---- ---- ----------------- appService-test01/triggeredjob-01/202201040236300466 webjob-rg-test diff --git a/src/Websites/Websites/help/Get-AzWebAppWebJob.md b/src/Websites/Websites/help/Get-AzWebAppWebJob.md index 04e0623122ba..cd77b6ae8810 100644 --- a/src/Websites/Websites/help/Get-AzWebAppWebJob.md +++ b/src/Websites/Websites/help/Get-AzWebAppWebJob.md @@ -24,8 +24,9 @@ List webjobs for an app. ### Example 1: List webjobs for an app ```powershell -PS C:\> Get-AzWebAppWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 - +Get-AzWebAppWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 +``` +```output Name Kind WebJobType ---- ---- ---------- appService-test01/triggeredjob-01 diff --git a/src/Websites/Websites/help/Import-AzWebAppKeyVaultCertificate.md b/src/Websites/Websites/help/Import-AzWebAppKeyVaultCertificate.md index 1ea12a77690f..0708eec1537b 100644 --- a/src/Websites/Websites/help/Import-AzWebAppKeyVaultCertificate.md +++ b/src/Websites/Websites/help/Import-AzWebAppKeyVaultCertificate.md @@ -25,7 +25,7 @@ The **Import-AzWebAppKeyVaultCertificate** cmdlet imports an SSL certificate to ### Example 1 ```powershell -Import-AzWebAppKeyVaultCertificate -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoWebApp" +Import-AzWebAppKeyVaultCertificate -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoWebApp" ` -KeyVaultName "ContosoKeyVault" -CertName "ContosoCertname" ``` @@ -33,8 +33,8 @@ This command imports an SSL certificate to a web app from Key Vault. ### Example 2 ```powershell -Import-AzWebAppKeyVaultCertificate -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoWebApp" --KeyVaultName '/subscriptions/[sub id]/resourceGroups/[rg]/providers/Microsoft.KeyVault/vaults/[vault name]' +Import-AzWebAppKeyVaultCertificate -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoWebApp" ` +-KeyVaultName '/subscriptions/[sub id]/resourceGroups/[rg]/providers/Microsoft.KeyVault/vaults/[vault name]' ` -CertName "ContosoCertname" ``` diff --git a/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md b/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md index 55f7588daf69..802142a82879 100644 --- a/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md +++ b/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md @@ -25,11 +25,11 @@ Creates an object that represent an Azure Storage path to be mounted inside a We ### Example 1 ```powershell -$storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -AccountName "myaccount.files.core.windows.net" -Type AzureFiles -ShareName "someShareName" -AccessKey "some access key" --MountPath "C:\myFolderInsideTheContainerWebApp" +$storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -AccountName "myaccount.files.core.windows.net" -Type AzureFiles -ShareName "someShareName" -AccessKey "some access key" ` +-MountPath "C:\myFolderInsideTheContainerWebApp" -$storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2.files.core.windows.net" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2" --MountPath "C:\myFolderInsideTheContainerWebApp2" +$storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2.files.core.windows.net" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2" ` +-MountPath "C:\myFolderInsideTheContainerWebApp2" Set-AzWebApp -ResourceGroupName myresourcegroup -Name myapp -AzureStoragePath $storagepath1, $storagePath2 ``` diff --git a/src/Websites/Websites/help/Remove-AzWebAppContinuousWebJob.md b/src/Websites/Websites/help/Remove-AzWebAppContinuousWebJob.md index 398227a5be0a..6ec74939cf7a 100644 --- a/src/Websites/Websites/help/Remove-AzWebAppContinuousWebJob.md +++ b/src/Websites/Websites/help/Remove-AzWebAppContinuousWebJob.md @@ -31,14 +31,14 @@ Delete a continuous web job for an app. ### Example 1: Delete a continuous web job for an app ```powershell -PS C:\> Remove-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 +Remove-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 ``` This command deletes a continuous web job for an app. ### Example 2: Delete a continuous web job for an app by pipeline ```powershell -PS C:\> Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-02 | Remove-AzWebAppContinuousWebJob +Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-02 | Remove-AzWebAppContinuousWebJob ``` This command deletes a continuous web job for an app by pipeline. diff --git a/src/Websites/Websites/help/Remove-AzWebAppSlotContinuousWebJob.md b/src/Websites/Websites/help/Remove-AzWebAppSlotContinuousWebJob.md index 93899c87c628..98f039382059 100644 --- a/src/Websites/Websites/help/Remove-AzWebAppSlotContinuousWebJob.md +++ b/src/Websites/Websites/help/Remove-AzWebAppSlotContinuousWebJob.md @@ -32,14 +32,14 @@ Delete a continuous web job for a deployment slot. ### Example 1: Delete a continuous web job for a deployment slot ```powershell -PS C:\> Remove-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-03 +Remove-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-03 ``` This command deletes a continuous web job for a deployment slot. ### Example 2: Delete a continuous web job for a deployment slot by pipeline ```powershell -PS C:\> Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-04 | Remove-AzWebAppSlotContinuousWebJob +Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-04 | Remove-AzWebAppSlotContinuousWebJob ``` This command deletes a continuous web job for a deployment slot by pipeline. diff --git a/src/Websites/Websites/help/Remove-AzWebAppSlotTriggeredWebJob.md b/src/Websites/Websites/help/Remove-AzWebAppSlotTriggeredWebJob.md index 79236022877f..1823c6e698d8 100644 --- a/src/Websites/Websites/help/Remove-AzWebAppSlotTriggeredWebJob.md +++ b/src/Websites/Websites/help/Remove-AzWebAppSlotTriggeredWebJob.md @@ -32,14 +32,14 @@ Delete a triggered web job for a deployment slot. ### Example 1: Delete a triggered web job for a deployment slot ```powershell -PS C:\> Remove-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 +Remove-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 ``` This command deletes a triggered web job for a deployment slot. ### Example 2: Delete a triggered web job for a deployment slot by pipeline ```powershell -PS C:\> Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-04 | Remove-AzWebAppSlotTriggeredWebJob +Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-04 | Remove-AzWebAppSlotTriggeredWebJob ``` This command deletes a triggered web job for a deployment slot by pipeline. diff --git a/src/Websites/Websites/help/Remove-AzWebAppTriggeredWebJob.md b/src/Websites/Websites/help/Remove-AzWebAppTriggeredWebJob.md index f89d55cb4f76..4181d6ec65c5 100644 --- a/src/Websites/Websites/help/Remove-AzWebAppTriggeredWebJob.md +++ b/src/Websites/Websites/help/Remove-AzWebAppTriggeredWebJob.md @@ -31,14 +31,14 @@ Delete a triggered web job for an app. ### Example 1: Delete a triggered web job for an app ```powershell -PS C:\> Remove-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 +Remove-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 ``` This command deletes a triggered web job for an app. ### Example 2: Delete a triggered web job for an app by pipeline ```powershell -PS C:\> Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-02 | Remove-AzWebAppTriggeredWebJob +Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-02 | Remove-AzWebAppTriggeredWebJob ``` This command deletes a triggered web job for an app by pipeline. diff --git a/src/Websites/Websites/help/Start-AzWebAppContinuousWebJob.md b/src/Websites/Websites/help/Start-AzWebAppContinuousWebJob.md index ca08b696e3a6..3b42895cb4eb 100644 --- a/src/Websites/Websites/help/Start-AzWebAppContinuousWebJob.md +++ b/src/Websites/Websites/help/Start-AzWebAppContinuousWebJob.md @@ -31,14 +31,14 @@ Start a continuous web job for an app. ### Example 1: Start a continuous web job for an app ```powershell -PS C:\> Start-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 +Start-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 ``` This command starts a continuous web job for an app. ### Example 2: Start a continuous web job for an app by pipeline ```powershell -PS C:\> Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 | Start-AzWebAppContinuousWebJo +Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 | Start-AzWebAppContinuousWebJob ``` This command starts a continuous web job for an app by pipeline. diff --git a/src/Websites/Websites/help/Start-AzWebAppSlotContinuousWebJob.md b/src/Websites/Websites/help/Start-AzWebAppSlotContinuousWebJob.md index ea49bc5a4ef7..dd744e8441ca 100644 --- a/src/Websites/Websites/help/Start-AzWebAppSlotContinuousWebJob.md +++ b/src/Websites/Websites/help/Start-AzWebAppSlotContinuousWebJob.md @@ -32,14 +32,14 @@ Start a continuous web job for a deployment slot. ### Example 1: Start a continuous web job for a deployment slot ```powershell -PS C:\> Start-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-01 +Start-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-01 ``` This command starts a continuous web job for an app. ### Example 2: Start a continuous web job for a deployment slot by pipeline ```powershell -PS C:\> Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-01 | Start-AzWebAppSlotContinuousWebJob +Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-01 | Start-AzWebAppSlotContinuousWebJob ``` This command starts a continuous web job for a deployment slot by pipeline. diff --git a/src/Websites/Websites/help/Start-AzWebAppSlotTriggeredWebJob.md b/src/Websites/Websites/help/Start-AzWebAppSlotTriggeredWebJob.md index e5146505d53b..b62b5b62ba25 100644 --- a/src/Websites/Websites/help/Start-AzWebAppSlotTriggeredWebJob.md +++ b/src/Websites/Websites/help/Start-AzWebAppSlotTriggeredWebJob.md @@ -32,14 +32,14 @@ Run a triggered web job for a deployment slot. ### Example 1: Run a triggered web job for a deployment slot ```powershell -PS C:\> Start-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 +Start-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 ``` This command runs a triggered web job for a deployment slot. ### Example 2: Run a triggered web job for a deployment slot by pipeline ```powershell -PS C:\> Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 | Start-AzWebAppSlotTriggeredWebJob +Get-AzWebAppSlotTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slottriggeredjob-03 | Start-AzWebAppSlotTriggeredWebJob ``` This command runs a triggered web job for a deployment slot by pipeline. diff --git a/src/Websites/Websites/help/Start-AzWebAppTriggeredWebJob.md b/src/Websites/Websites/help/Start-AzWebAppTriggeredWebJob.md index cc4d92f98a5b..c40b1907fdb7 100644 --- a/src/Websites/Websites/help/Start-AzWebAppTriggeredWebJob.md +++ b/src/Websites/Websites/help/Start-AzWebAppTriggeredWebJob.md @@ -31,14 +31,14 @@ Run a triggered web job for an app. ### Example 1: Run a triggered web job for an app ```powershell -PS C:\> Start-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 +Start-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 ``` This command runs a triggered web job for an app. ### Example 2: Run a triggered web job for an app by pipeline ```powershell -PS C:\> Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 | Start-AzWebAppTriggeredWebJob +Get-AzWebAppTriggeredWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name triggeredjob-01 | Start-AzWebAppTriggeredWebJob ``` This command runs a triggered web job for an app by pipeline. diff --git a/src/Websites/Websites/help/Stop-AzWebAppContinuousWebJob.md b/src/Websites/Websites/help/Stop-AzWebAppContinuousWebJob.md index 31915f787fa4..604ee7226502 100644 --- a/src/Websites/Websites/help/Stop-AzWebAppContinuousWebJob.md +++ b/src/Websites/Websites/help/Stop-AzWebAppContinuousWebJob.md @@ -31,14 +31,14 @@ Stop a continuous web job for an app. ### Example 1: Stop a continuous web job for an app ```powershell -PS C:\> Stop-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 +Stop-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 ``` This command stops a continuous web job for an app. ### Example 2: Stop a continuous web job for an app by pipeline ```powershell -PS C:\> Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 | Stop-AzWebAppContinuousWebJob +Get-AzWebAppContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -Name continuousjob-01 | Stop-AzWebAppContinuousWebJob ``` This command stops a continuous web job for an app by pipeline. diff --git a/src/Websites/Websites/help/Stop-AzWebAppSlotContinuousWebJob.md b/src/Websites/Websites/help/Stop-AzWebAppSlotContinuousWebJob.md index 7059f770f42e..60208bd543f6 100644 --- a/src/Websites/Websites/help/Stop-AzWebAppSlotContinuousWebJob.md +++ b/src/Websites/Websites/help/Stop-AzWebAppSlotContinuousWebJob.md @@ -32,14 +32,14 @@ Stop a continuous web job for a deployment slot. ### Example 1: Stop a continuous web job for a deployment slot ```powershell -PS C:\> Stop-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-01 +Stop-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-01 ``` This command stops a continuous web job for an app. ### Example 2: Stop a continuous web job for a deployment slot by pipeline ```powershell -PS C:\> Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-01 | Stop-AzWebAppSlotContinuousWebJob +Get-AzWebAppSlotContinuousWebJob -ResourceGroupName webjob-rg-test -AppName appService-test01 -SlotName slot01 -Name slotcontinuousjob-01 | Stop-AzWebAppSlotContinuousWebJob ``` This command stops a continuous web job for a deployment slot by pipeline. diff --git a/src/Websites/Websites/help/Update-AzWebAppTrafficRouting.md b/src/Websites/Websites/help/Update-AzWebAppTrafficRouting.md index 2f4310c89b14..a270817ad3cb 100644 --- a/src/Websites/Websites/help/Update-AzWebAppTrafficRouting.md +++ b/src/Websites/Websites/help/Update-AzWebAppTrafficRouting.md @@ -23,17 +23,16 @@ The **Update-AzWebAppTrafficRouting** cmdlet updates the routing rule configurat ### Example 1: Update a routing rule to transfer 15% of production traffice to Stg slot ```powershell -Update-AzWebAppTrafficRouting -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" -- RoutingRule @{AtionHostName='XXXX.azurewebsites.net';ReroutePercentage=15;Name='Stg'} +Update-AzWebAppTrafficRouting -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" ` +-RoutingRule @{AtionHostName='XXXX.azurewebsites.net';ReroutePercentage=15;Name='Stg'} ``` This command updates a routing rule to transfer 15% of production traffic to Stg slot. ### Example 2: Update a routing rule to transfer the production traffice to Stg slot ranges from 50% to 90% in incremental manner. ```powershell -Update-AzWebAppTrafficRouting -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" --RoutingRule @{ActionHostName='XXXX.azurewebsites.net';ReroutePercentage=50;ChangeIntervalInMinutes=1; -MinReroutePercentage=50;MaxReroutePercentage=90;Name='Stg';ChangeStep=10} +Update-AzWebAppTrafficRouting -ResourceGroupName "Default-Web-WestUS" -WebAppName "ContosoSite" ` +-RoutingRule @{ActionHostName='XXXX.azurewebsites.net';ReroutePercentage=50;ChangeIntervalInMinutes=1;MinReroutePercentage=50;MaxReroutePercentage=90;Name='Stg';ChangeStep=10} ``` This command Updates a routing rule to transfer the production traffice to Stg slot ranges from 50% to 90% in incremental manner.