Skip to content

Commit e90df45

Browse files
authored
Fix Az.WebSites Syntax Errors (#17869)
1 parent b6f4bd5 commit e90df45

8 files changed

+8
-8
lines changed

src/Websites/Websites/help/Get-AzStaticWebApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ This commands gets a satic web application by name.
8282

8383
### Example 4: Get a satic web application by pipline
8484
```powershell
85-
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' -SkuTier 'free' | Get-AzStaticWebApp -InputObejct
85+
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
8686
```
8787

8888
```output

src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -Acco
3131
$storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2.files.core.windows.net" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2"
3232
-MountPath "C:\myFolderInsideTheContainerWebApp2"
3333
34-
Set-AzWebApp -ResourceGroup myresourcegroup -Name myapp -AzureStoragePath $storagepath1, $storagePath2
34+
Set-AzWebApp -ResourceGroupName myresourcegroup -Name myapp -AzureStoragePath $storagepath1, $storagePath2
3535
```
3636

3737
## PARAMETERS

src/Websites/Websites/help/New-AzWebAppDatabaseBackupSetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The **New-AzWebAppDatabaseBackupSetting** cmdlet creates a new Azure Web App Bac
2424

2525
### Example 1
2626
```powershell
27-
New-AzWebAppDatabaseBackupSetting -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -ConnectionString "MyConnectionString" -DatabaseType "SqlAzure"
27+
New-AzWebAppDatabaseBackupSetting -Name "ContosoWebApp" -ConnectionString "MyConnectionString" -DatabaseType "SqlAzure"
2828
```
2929

3030
Creates a database backup setting (connection string) of type SqlAzure for the specified app ContosoWebApp that is within resource group Default-Web-WestUS.

src/Websites/Websites/help/Remove-AzStaticWebAppAttachedRepository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This command removes repository of static site.
3838

3939
### Example 2: Remove repository of static site by pipeline
4040
```powershell
41-
Get-AzStaticWebAppAttachedRepository -ResourceGroupName azure-rg-test -Name staticweb-portal01 | Remove-AzStaticWebAppAttachedRepository
41+
Get-AzStaticWebApp -ResourceGroupName azure-rg-test -Name staticweb-portal01 | Remove-AzStaticWebAppAttachedRepository
4242
```
4343

4444
This command removes repository of static site by pipeline.

src/Websites/Websites/help/Remove-AzStaticWebAppUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Description for Deletes the user entry from the static site.
3232

3333
### Example 1: Delete a user entry from the static site
3434
```powershell
35-
Remove-AzStaticWebAppUser -ResourceGroupName resourceGroup -Name staticweb01 -Authprovider 'all' -UseId 'xxxxxxxx'
35+
Remove-AzStaticWebAppUser -ResourceGroupName resourceGroup -Name staticweb01 -Authprovider 'all' -UserId 'xxxxxxxx'
3636
```
3737

3838
This command deletes the user entry from the static site.

src/Websites/Websites/help/Set-AzWebApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ContosoWebApp. This replaces all existing connection strings for Web App Contoso
7070

7171
```powershell
7272
$hashtable = @{myConnectionString = @{Type='MySql';Value='MySql Connection string'}}
73-
Set-AzWebApp -Name 'ContosoWebApp' -ResourceGroupName 'Default-Web-WestUS' -ConnectionString $hashtable
73+
Set-AzWebApp -Name 'ContosoWebApp' -ResourceGroupName 'Default-Web-WestUS' -ConnectionStrings $hashtable
7474
```
7575

7676
### Example 5

src/Websites/Websites/help/Unregister-AzStaticWebAppBuildUserProvidedFunctionApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This command unregisters the user provided function app from the static site bui
3939

4040
### Example 2: Unregister the user provided function app from the static site build by pipeline
4141
```powershell
42-
Register-AzStaticWebAppUserProvidedFunctionApp -ResourceGroupName 'resourceGroup' -Name 'staticweb00' -EnvironmentName 'default' -FunctionAppName 'functionAppName01' -FunctionAppResourceId 'functionAppId01' -FunctionAppRegion 'eastus' -IsForced | Unregister-AzStaticWebAppBuildUserProvidedFunctionApp
42+
Register-AzStaticWebAppUserProvidedFunctionApp -ResourceGroupName 'resourceGroup' -Name 'staticweb00' -EnvironmentName 'default' -FunctionAppName 'functionAppName01' -FunctionAppResourceId 'functionAppId01' -FunctionAppRegion 'eastus' -Forced | Unregister-AzStaticWebAppBuildUserProvidedFunctionApp
4343
```
4444

4545
This command unregisters the user provided function app from the static site build by pipeline.

src/Websites/Websites/help/Unregister-AzStaticWebAppUserProvidedFunctionApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This command unregisters the user provided function app from the static site.
3939

4040
### Example 2: Unregister the user provided function app from the static site by pipeline
4141
```powershell
42-
Register-AzStaticWebAppUserProvidedFunctionApp -ResourceGroupName $env.resourceGroup -Name $env.staticweb00 -FunctionAppName $env.functionAppName01 -FunctionAppResourceId $env.functionAppId01 -FunctionAppRegion $env.location -IsForced | Unregister-AzStaticWebAppUserProvidedFunctionApp
42+
Register-AzStaticWebAppUserProvidedFunctionApp -ResourceGroupName $env.resourceGroup -Name $env.staticweb00 -FunctionAppName $env.functionAppName01 -FunctionAppResourceId $env.functionAppId01 -FunctionAppRegion $env.location -Forced | Unregister-AzStaticWebAppUserProvidedFunctionApp
4343
```
4444

4545
This command unregisters the user provided function app from the static site by pipeline.

0 commit comments

Comments
 (0)