forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix validation error surfacing in Deployment Stack cmdlets. (Azure#25122
) * Fix validation error surfacing in Deployment Stack cmdlets. Some validation errors were not being surfaced correctly because the exception type was not being accounted for. * Update ChangeLog.md --------- Co-authored-by: NoriZC <110961157+NoriZC@users.noreply.github.com>
- Loading branch information
1 parent
da64873
commit 27357f9
Showing
9 changed files
with
1,291 additions
and
5,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5,293 changes: 647 additions & 4,646 deletions
5,293
...esources.Test.ScenarioTests.DeploymentStackTests/TestNewResourceGroupDeploymentStack.json
Large diffs are not rendered by default.
Oops, something went wrong.
962 changes: 586 additions & 376 deletions
962
...Resources.Test.ScenarioTests.DeploymentStackTests/TestNewSubscriptionDeploymentStack.json
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
src/Resources/Resources.Test/StacksRGBadStorageAccountName.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
targetScope = 'resourceGroup' | ||
|
||
param location string = resourceGroup().location | ||
param name string | ||
var storageSku = 'Standard_LRS' | ||
|
||
resource stg 'Microsoft.Storage/storageAccounts@2018-11-01' = { | ||
name: name | ||
location: location | ||
kind: 'Storage' | ||
sku: { | ||
name: storageSku | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/Resources/Resources.Test/StacksRGBadStorageAccountName.bicepparam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
using './StacksRGBadStorageAccountName.bicep' | ||
|
||
param name = 'TEST123' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
targetScope = 'subscription' | ||
|
||
param rgname string | ||
param location string = deployment().location | ||
|
||
resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = { | ||
name: rgname | ||
location: location | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
using './StacksSubBadRGName.bicep' | ||
|
||
param rgname = 'test23!!!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters