-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c12079
commit 26ff6c5
Showing
12 changed files
with
90 additions
and
13 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,6 @@ | ||
{ | ||
"arguments": "deployment group what-if --subscription d08e1a72-8180-4ed3-8125-9dff7376b0bd --resource-group ant-test --template-file test/scenarios/basic-success/main.bicep --parameters test/scenarios/basic-success/main.bicepparam --output json --only-show-errors --no-pretty-print", | ||
"exitCode": 0, | ||
"stdout": "{\n \"changes\": [\n {\n \"after\": {\n \"id\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/asdf9h238h\",\n \"kind\": \"StorageV2\",\n \"location\": \"westus\",\n \"name\": \"asdf9h238h\",\n \"resourceGroup\": \"ant-test\",\n \"sku\": {\n \"name\": \"Standard_LRS\",\n \"tier\": \"Standard\"\n },\n \"type\": \"Microsoft.Storage/storageAccounts\"\n },\n \"before\": {\n \"id\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/asdf9h238h\",\n \"kind\": \"StorageV2\",\n \"location\": \"westus\",\n \"name\": \"asdf9h238h\",\n \"resourceGroup\": \"ant-test\",\n \"sku\": {\n \"name\": \"Standard_LRS\",\n \"tier\": \"Standard\"\n },\n \"type\": \"Microsoft.Storage/storageAccounts\"\n },\n \"changeType\": \"Ignore\",\n \"delta\": null,\n \"resourceId\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/asdf9h238h\",\n \"unsupportedReason\": null\n },\n {\n \"after\": {\n \"id\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/foo3462346\",\n \"kind\": \"StorageV2\",\n \"location\": \"westus\",\n \"name\": \"foo3462346\",\n \"resourceGroup\": \"ant-test\",\n \"sku\": {\n \"name\": \"Standard_LRS\",\n \"tier\": \"Standard\"\n },\n \"type\": \"Microsoft.Storage/storageAccounts\"\n },\n \"before\": {\n \"id\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/foo3462346\",\n \"kind\": \"StorageV2\",\n \"location\": \"westus\",\n \"name\": \"foo3462346\",\n \"resourceGroup\": \"ant-test\",\n \"sku\": {\n \"name\": \"Standard_LRS\",\n \"tier\": \"Standard\"\n },\n \"type\": \"Microsoft.Storage/storageAccounts\"\n },\n \"changeType\": \"Ignore\",\n \"delta\": null,\n \"resourceId\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/foo3462346\",\n \"unsupportedReason\": null\n },\n {\n \"after\": {\n \"apiVersion\": \"2023-01-01\",\n \"id\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/v54obf2m3uexgasddsf\",\n \"kind\": \"StorageV2\",\n \"location\": \"West US\",\n \"name\": \"v54obf2m3uexgasddsf\",\n \"resourceGroup\": \"ant-test\",\n \"sku\": {\n \"name\": \"Standard_ZRS\"\n },\n \"type\": \"Microsoft.Storage/storageAccounts\"\n },\n \"before\": null,\n \"changeType\": \"Create\",\n \"delta\": null,\n \"resourceId\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/v54obf2m3uexgasddsf\",\n \"unsupportedReason\": null\n },\n {\n \"after\": {\n \"id\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Providers.Test/statelessResources/main-child0-child0-child0-child\",\n \"location\": \"westus\",\n \"name\": \"main-child0-child0-child0-child\",\n \"resourceGroup\": \"ant-test\",\n \"type\": \"Providers.Test/statelessResources\"\n },\n \"before\": {\n \"id\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Providers.Test/statelessResources/main-child0-child0-child0-child\",\n \"location\": \"westus\",\n \"name\": \"main-child0-child0-child0-child\",\n \"resourceGroup\": \"ant-test\",\n \"type\": \"Providers.Test/statelessResources\"\n },\n \"changeType\": \"Ignore\",\n \"delta\": null,\n \"resourceId\": \"/subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Providers.Test/statelessResources/main-child0-child0-child0-child\",\n \"unsupportedReason\": null\n }\n ],\n \"error\": null,\n \"status\": \"Succeeded\"\n}\n", | ||
"stderr": "" | ||
} |
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 @@ | ||
## What-If Results | ||
✅ Success! | ||
|
||
| Resource Id | Change Type | Change | | ||
|-|-|- | | ||
| /subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/asdf9h238h | Ignore | <pre>null</pre> | | ||
| /subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/foo3462346 | Ignore | <pre>null</pre> | | ||
| /subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Microsoft.Storage/storageAccounts/v54obf2m3uexgasddsf | Create | <pre>null</pre> | | ||
| /subscriptions/d08e1a72-8180-4ed3-8125-9dff7376b0bd/resourceGroups/ant-test/providers/Providers.Test/statelessResources/main-child0-child0-child0-child | Ignore | <pre>null</pre> | |
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,6 @@ | ||
{ | ||
"arguments": "deployment group what-if --subscription d08e1a72-8180-4ed3-8125-9dff7376b0bd --resource-group ant-test --template-file test/scenarios/bicep-error/main.bicep --parameters test/scenarios/bicep-error/main.bicepparam --output json --only-show-errors --no-pretty-print", | ||
"exitCode": 1, | ||
"stdout": "", | ||
"stderr": "ERROR: /Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(1,5) : Error BCP028: Identifier \"foo\" is declared multiple times. Remove or rename the duplicates.\n/Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(1,8) : Error BCP018: Expected the \"=\" character at this location.\n/Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(3,5) : Error BCP028: Identifier \"foo\" is declared multiple times. Remove or rename the duplicates.\n/Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(3,21) : Error BCP057: The name \"a\" does not exist in the current context.\n/Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(5,21) : Error BCP062: The referenced declaration with name \"foo\" is not valid.\n" | ||
} |
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,10 @@ | ||
## What-If Results | ||
❌ Failure! | ||
|
||
| Code | Message | Target | | ||
|-|-|- | | ||
| BicepBuildError | /Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(1,5) : Error BCP028: Identifier "foo" is declared multiple times. Remove or rename the duplicates. | | | ||
| BicepBuildError | /Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(1,8) : Error BCP018: Expected the "=" character at this location. | | | ||
| BicepBuildError | /Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(3,5) : Error BCP028: Identifier "foo" is declared multiple times. Remove or rename the duplicates. | | | ||
| BicepBuildError | /Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(3,21) : Error BCP057: The name "a" does not exist in the current context. | | | ||
| BicepBuildError | /Users/ant/Desktop/bicep-action/test/scenarios/bicep-error/main.bicep(5,21) : Error BCP062: The referenced declaration with name "foo" is not valid. | | |
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,6 @@ | ||
{ | ||
"arguments": "deployment group what-if --subscription d08e1a72-8180-4ed3-8125-9dff7376b0bd --resource-group ant-test --template-file test/scenarios/preflight-error/main.bicep --parameters test/scenarios/preflight-error/main.bicepparam --output json --only-show-errors --no-pretty-print", | ||
"exitCode": 1, | ||
"stdout": "", | ||
"stderr": "ERROR: InvalidTemplateDeployment - The template deployment 'main' is not valid according to the validation procedure. The tracking id is '501d03f7-c844-4b86-a498-1de4d9fafdb4'. See inner errors for details.\nPreflightValidationCheckFailed - Preflight validation failed. Please refer to the details for the specific errors.\nStorageAccountAlreadyTaken - The storage account named stg is already taken.\n" | ||
} |
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,5 @@ | ||
## What-If Results | ||
❌ Failure! | ||
|
||
| Code | Message | Target | | ||
|-|-|- | |
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,6 @@ | ||
{ | ||
"arguments": "deployment group what-if --subscription d08e1a72-8180-4ed3-8125-9dff7376b0bd --resource-group ant-test --template-file test/scenarios/static-error/main.bicep --parameters test/scenarios/static-error/main.bicepparam --output json --only-show-errors --no-pretty-print", | ||
"exitCode": 1, | ||
"stdout": "", | ||
"stderr": "ERROR: LocationNotAvailableForResourceType - The provided location 'antarctica' is not available for resource type 'Microsoft.Storage/storageAccounts'. List of available regions for the resource type is 'eastus,eastus2,westus,westeurope,eastasia,southeastasia,japaneast,japanwest,northcentralus,southcentralus,centralus,northeurope,brazilsouth,australiaeast,australiasoutheast,southindia,centralindia,westindia,canadaeast,canadacentral,westus2,westcentralus,uksouth,ukwest,koreacentral,koreasouth,francecentral,australiacentral,southafricanorth,uaenorth,switzerlandnorth,germanywestcentral,norwayeast,westus3,jioindiawest,swedencentral,qatarcentral,polandcentral'.\n" | ||
} |
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,5 @@ | ||
## What-If Results | ||
❌ Failure! | ||
|
||
| Code | Message | Target | | ||
|-|-|- | |