-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[ARM] BREAKING CHANGE: Add user confirmation for az ts create #15480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zhoxing-ms
merged 49 commits into
Azure:dev
from
detienne20:daetienn/TemplateSpecsIdempotency
Oct 22, 2020
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
00b9235
{Docs} Remove stale reference in README to closed issue about extensi…
dkmiller ab16df0
Merge remote-tracking branch 'upstream/release'
azclibot 03436bc
Merge remote-tracking branch 'upstream/release'
azclibot 7d98b1f
Merge remote-tracking branch 'upstream/release'
azclibot 06f6ec5
Merge remote-tracking branch 'upstream/release'
azclibot 125406f
Merge branch 'master' of git://github.com/Azure/azure-cli into dev
a497390
Preliminary changes made to add support for template-specs
e43a151
Reconfiguration
adab2d2
Merge remote-tracking branch 'upstream/release'
azclibot 37c8522
Merge branch 'master' of git://github.com/Azure/azure-cli into dev
ef1e3f2
Merge remote-tracking branch 'upstream/dev' into dev
50e7c9c
validate function error rectified
68f47fd
validate command works for template-uri
7f184f8
Merge branch 'dev' of git://github.com/Azure/azure-cli into dev
bf962b1
Template-specs deployment works at resource-group level
4b90edd
Group deployment updated to function with 2020 SDK
4f39504
validate with template specs added
2e04882
Management scope and tenant scope errors fixed
7be894f
Testing Complete
87ccc2e
Merge branch 'dev' of git://github.com/Azure/azure-cli into dev
4f1348c
Template-Specs Deployment Added
9eb09f2
Template-Specs Deployment Added
44362eb
Merge branch 'dev' of git://github.com/Azure/azure-cli into dev
cf7b97a
Updated test cases and removed unnecessary comments
fb78986
Removed test cases from launch.json
504fda7
Uncommented test case
8f21f7c
Cleaned up repo
e73132c
Cleaned up repo
e8153f8
Merge branch 'dev' of git://github.com/Azure/azure-cli into dev
eac8414
Style checks complete, template_spec parameter placed at the end, tim…
74666fe
Merged with /dev
0e28ed8
Fixed failing CLI Check Test
583352f
Added fixes for deployment create_or_update and validate usage
a6344b8
Merge branch 'dev' of git://github.com/Azure/azure-cli into dev
2b43c88
Fix getting resource API version in ARM cmdlt
eladperets 045b6e1
resetting branch
9b3fa34
reset
8153cec
Merge branch 'dev' of git://github.com/Azure/azure-cli into dev
f4f8df7
Merge branch 'dev' of git://github.com/Azure/azure-cli into dev
66cb18e
Added confirmation for az ts create
606c441
Launch.json restored
ed630fa
Testing files updated
ae9c459
Merge branch 'dev' of git://github.com/Azure/azure-cli into daetienn/…
0027459
Testing files updated
c8e5075
Merge branch 'dev' of git://github.com/Azure/azure-cli into daetienn/…
162c5bb
Merge branch 'dev' of git://github.com/Azure/azure-cli into daetienn/…
6587a47
Merge branch 'dev' of git://github.com/Azure/azure-cli into daetienn/…
09b7a66
Unique value in sub deployment, ts parameter name updated
27310f3
Unique value in sub deployment updated
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
394 changes: 382 additions & 12 deletions
394
...zure/cli/command_modules/resource/tests/latest/recordings/test_create_template_specs.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -14,7 +14,54 @@ interactions: | |
| - -g -n -v -l -f | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: GET | ||
| uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_template_specs000001/providers/Microsoft.Resources/templateSpecs/cli-test-list-template-spec000002/versions/1.0?api-version=2019-06-01-preview | ||
| response: | ||
| body: | ||
| string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Resources/templateSpecs/cli-test-list-template-spec000002/versions/1.0'' | ||
| under resource group ''cli_test_template_specs000001'' was not found. For | ||
| more details please go to https://aka.ms/ARMResourceNotFoundFix"}}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-length: | ||
| - '354' | ||
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Mon, 12 Oct 2020 03:45:01 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
| - no-cache | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-failure-cause: | ||
| - gateway | ||
| status: | ||
| code: 404 | ||
| message: Not Found | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - application/json | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| CommandName: | ||
| - ts create | ||
| Connection: | ||
| - keep-alive | ||
| ParameterSetName: | ||
| - -g -n -v -l -f | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: GET | ||
|
|
@@ -32,7 +79,7 @@ interactions: | |
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Wed, 16 Sep 2020 14:15:56 GMT | ||
| - Mon, 12 Oct 2020 03:45:01 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
@@ -65,7 +112,7 @@ interactions: | |
| - -g -n -v -l -f | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: PUT | ||
|
|
@@ -74,8 +121,8 @@ interactions: | |
| body: | ||
| string: "{\r\n \"location\": \"westus\",\r\n \"systemData\": {\r\n \"createdBy\": | ||
| \"[email protected]\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": | ||
| \"2020-09-16T14:15:57.4061382Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n | ||
| \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-09-16T14:15:57.4061382Z\"\r\n | ||
| \"2020-10-12T03:45:03.2513917Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n | ||
| \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-10-12T03:45:03.2513917Z\"\r\n | ||
| \ },\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_template_specs000001/providers/Microsoft.Resources/templateSpecs/cli-test-list-template-spec000002\",\r\n | ||
| \ \"type\": \"Microsoft.Resources/templateSpecs\",\r\n \"name\": \"cli-test-list-template-spec000002\"\r\n}" | ||
| headers: | ||
|
|
@@ -86,7 +133,7 @@ interactions: | |
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Wed, 16 Sep 2020 14:15:57 GMT | ||
| - Mon, 12 Oct 2020 03:45:03 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
@@ -130,7 +177,7 @@ interactions: | |
| - -g -n -v -l -f | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: PUT | ||
|
|
@@ -139,8 +186,8 @@ interactions: | |
| body: | ||
| string: "{\r\n \"location\": \"westus\",\r\n \"systemData\": {\r\n \"createdBy\": | ||
| \"[email protected]\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": | ||
| \"2020-09-16T14:15:58.6212032Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n | ||
| \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-09-16T14:15:58.6212032Z\"\r\n | ||
| \"2020-10-12T03:45:04.3675163Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n | ||
| \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-10-12T03:45:04.3675163Z\"\r\n | ||
| \ },\r\n \"properties\": {\r\n \"artifacts\": [],\r\n \"template\": | ||
| {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#\",\r\n | ||
| \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n \"location\": | ||
|
|
@@ -167,7 +214,7 @@ interactions: | |
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Wed, 16 Sep 2020 14:15:58 GMT | ||
| - Mon, 12 Oct 2020 03:45:04 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
@@ -198,7 +245,7 @@ interactions: | |
| - --template-spec | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: GET | ||
|
|
@@ -207,8 +254,8 @@ interactions: | |
| body: | ||
| string: "{\r\n \"location\": \"westus\",\r\n \"systemData\": {\r\n \"createdBy\": | ||
| \"[email protected]\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": | ||
| \"2020-09-16T14:15:58.6212032Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n | ||
| \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-09-16T14:15:58.6212032Z\"\r\n | ||
| \"2020-10-12T03:45:04.3675163Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n | ||
| \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-10-12T03:45:04.3675163Z\"\r\n | ||
| \ },\r\n \"properties\": {\r\n \"artifacts\": [],\r\n \"template\": | ||
| {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#\",\r\n | ||
| \ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n \"location\": | ||
|
|
@@ -235,7 +282,7 @@ interactions: | |
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Wed, 16 Sep 2020 14:15:58 GMT | ||
| - Mon, 12 Oct 2020 03:45:05 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
@@ -268,7 +315,7 @@ interactions: | |
| - --template-spec | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: GET | ||
|
|
@@ -277,8 +324,8 @@ interactions: | |
| body: | ||
| string: "{\r\n \"location\": \"westus\",\r\n \"systemData\": {\r\n \"createdBy\": | ||
| \"[email protected]\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": | ||
| \"2020-09-16T14:15:57.4061382Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n | ||
| \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-09-16T14:15:58.6212032Z\"\r\n | ||
| \"2020-10-12T03:45:03.2513917Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n | ||
| \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-10-12T03:45:04.3675163Z\"\r\n | ||
| \ },\r\n \"properties\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_template_specs000001/providers/Microsoft.Resources/templateSpecs/cli-test-list-template-spec000002\",\r\n | ||
| \ \"type\": \"Microsoft.Resources/templateSpecs\",\r\n \"name\": \"cli-test-list-template-spec000002\"\r\n}" | ||
| headers: | ||
|
|
@@ -289,7 +336,7 @@ interactions: | |
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Wed, 16 Sep 2020 14:15:59 GMT | ||
| - Mon, 12 Oct 2020 03:45:06 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
@@ -324,7 +371,7 @@ interactions: | |
| - --template-spec --yes | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: DELETE | ||
|
|
@@ -338,7 +385,7 @@ interactions: | |
| content-length: | ||
| - '0' | ||
| date: | ||
| - Wed, 16 Sep 2020 14:16:00 GMT | ||
| - Mon, 12 Oct 2020 03:45:07 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
@@ -369,7 +416,7 @@ interactions: | |
| - -g | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: GET | ||
|
|
@@ -385,7 +432,7 @@ interactions: | |
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Wed, 16 Sep 2020 14:16:00 GMT | ||
| - Mon, 12 Oct 2020 03:45:07 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
@@ -416,7 +463,7 @@ interactions: | |
| - --template-spec --yes | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: DELETE | ||
|
|
@@ -428,7 +475,7 @@ interactions: | |
| cache-control: | ||
| - no-cache | ||
| date: | ||
| - Wed, 16 Sep 2020 14:16:02 GMT | ||
| - Mon, 12 Oct 2020 03:45:08 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
@@ -457,7 +504,7 @@ interactions: | |
| - -g | ||
| User-Agent: | ||
| - python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.12.0 | ||
| azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.13.0 | ||
| accept-language: | ||
| - en-US | ||
| method: GET | ||
|
|
@@ -473,7 +520,7 @@ interactions: | |
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Wed, 16 Sep 2020 14:16:01 GMT | ||
| - Mon, 12 Oct 2020 03:45:09 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.