Skip to content

Commit dc24d8d

Browse files
CaptainFanZzzZiyue ZhengBethanyZhou
authored
Fix Az.Blueprint Syntax Errors (#17492)
* Fix Az.Blueprint Syntax Errors * Update Set-AzBlueprintAssignment.md * Update Blueprint.sln Co-authored-by: Ziyue Zheng <[email protected]> Co-authored-by: Beisi Zhou <[email protected]>
1 parent 8cf3246 commit dc24d8d

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

src/Blueprint/Blueprint.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tags", "..\Resources\Tags\T
2828
EndProject
2929
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.MSGraph", "..\Resources\MSGraph.Autorest\Az.MSGraph.csproj", "{266CBF7F-4C80-4D7A-A415-44C142369101}"
3030
EndProject
31+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.Authorization", "..\Resources\Authorization.Autorest\Az.Authorization.csproj", "{E14B71EE-4EDA-4FFC-8BD2-DDB73331B955}"
32+
EndProject
3133
Global
3234
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3335
Debug|Any CPU = Debug|Any CPU

src/Blueprint/Blueprint/help/New-AzBlueprintArtifact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Create a new artifact through inline parameters.
9393
### Example 3
9494
```powershell
9595
$bp = Get-AzBlueprint -Name SimpleBlueprint
96-
New-AzBlueprintArtifact -Type TemplateArtifact -Name storage-account -Blueprint $bp -TemplateFile C:\StorageAccountArmTemplate.json -ResourceGroup "storageRG" -TemplateParameterFile C:\Workspace\BlueprintTemplates\RestTemplatesSomeInline\StorageAccountParameters.json
96+
New-AzBlueprintArtifact -Type TemplateArtifact -Name storage-account -Blueprint $bp -TemplateFile C:\StorageAccountArmTemplate.json -ResourceGroupName "storageRG" -TemplateParameterFile C:\Workspace\BlueprintTemplates\RestTemplatesSomeInline\StorageAccountParameters.json
9797
```
9898

9999
```output

src/Blueprint/Blueprint/help/Remove-AzBlueprintAssignment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Remove a blueprint that has been assigned to a subscription.
3737

3838
### Example 1
3939
```powershell
40-
Remove-AzBlueprintAssignment -Name "myAssignment" -Subscription "00000000-1111-0000-1111-000000000000" -Confirm
40+
Remove-AzBlueprintAssignment -Name "myAssignment" -SubscriptionId "00000000-1111-0000-1111-000000000000" -Confirm
4141
```
4242

4343
Remove the blueprint assignment specified by name from the specified subscription. The cmdlet will prompt for confirmation before executing the command.

src/Blueprint/Blueprint/help/Set-AzBlueprintArtifact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Update an artifact through inline parameters.
9393
### Example 3
9494
```powershell
9595
$bp = Get-AzBlueprint -Name SimpleBlueprint
96-
Set-AzBlueprintArtifact -Type TemplateArtifact -Name storage-account -Blueprint $bp -TemplateFile C:\StorageAccountArmTemplate.json -ResourceGroup "storageRG" -TemplateParameterFile C:\Workspace\BlueprintTemplates\RestTemplatesSomeInline\StorageAccountParameters.json
96+
Set-AzBlueprintArtifact -Type TemplateArtifact -Name storage-account -Blueprint $bp -TemplateFile C:\StorageAccountArmTemplate.json -ResourceGroupName "storageRG" -TemplateParameterFile C:\Workspace\BlueprintTemplates\RestTemplatesSomeInline\StorageAccountParameters.json
9797
```
9898

9999
```output

src/Blueprint/Blueprint/help/Set-AzBlueprintAssignment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Update an existing blueprint assignment through an assignment file. The format o
7575

7676
### Example 3
7777
```powershell
78-
$blueprintObject = Get-AzBlueprint -ManagementGroup "myManagementGroup" -Name "myBlueprintName"
78+
$blueprintObject = Get-AzBlueprint -ManagementGroupId "myManagementGroup" -Name "myBlueprintName"
7979
Set-AzBlueprintAssignment -Name "myAssignment" -Blueprint $blueprintObject -ManagementGroupId "myManagementGroup" -SubscriptionId 00000000-1111-0000-1111-000000000000 -Location "West US" -Parameter @{P1="v1"; P2="v2"}
8080
```
8181

0 commit comments

Comments
 (0)