Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
00c59c2
[Role] az ad sp create-for-rbac: Deprecate creating Contributor role …
jiasli Dec 22, 2020
8d3bbbb
[SQL] az sql dw update: fix update to not accept backup-storage-redun…
xaliciayang Dec 22, 2020
4ef9e0e
[BACKUP] az backup job list: Solved -o table bug and added backup_man…
akshayneema Dec 22, 2020
aea4f5e
[AppService] Unhide Python 3.9 in functionapp create (#16296)
Hazhzeng Dec 23, 2020
791150e
{Storage} Fix issue #9948: 'az storage container create' required '--…
Juliehzl Dec 23, 2020
8001d4b
[DataBoxEdge] new command module: support for data-box-edge devices a…
evelyn-ys Dec 23, 2020
94dcc6a
[Synapse] Add new cmdlets for synapse sql aad admin and sql audit pol…
aim-for-better Dec 23, 2020
bedfc6f
{Telemetry} Reomve trace stack info in Telemetry (#16332)
houk-ms Dec 23, 2020
7361b99
Extract error code and error message from HttpOperationError (#16273)
houk-ms Dec 23, 2020
903ecf1
Fix spelling (mySubscrpitionId) (#16252)
scovetta Dec 23, 2020
7882147
[AppService] Fixes #14583: az webapp up should generate default name …
calvinsID Dec 23, 2020
37c8d72
[ARO] Ensure worker_profile is not None before getting the subnets fr…
bennerv Dec 23, 2020
3776643
[ACR] bump api version. support zone redundancy (#15975)
adewaleo Dec 23, 2020
df80a09
[Synapse] Add integration runtime related cmdlets (#15498)
wonner Dec 24, 2020
885e78d
[Resource] az provider register: Add --accept-terms for registering R…
fengzhou-msft Dec 24, 2020
e5eefd2
[Profile] Fix "missing secret or certificate in order to authenticate…
jiasli Dec 24, 2020
02bbf1f
[ACR] az acr connected-acr create/update/delete/list/show: new featur…
rosanch Dec 24, 2020
7270756
{Network} Migrate network SDK that is used by some other modules to t…
jsntcy Dec 24, 2020
25912fd
[ARM] `az deployment`: Fix parse errors with multiline strings (#15502)
wiktorn Dec 25, 2020
288e18d
{Storage} Fix live test (#15948)
Juliehzl Dec 25, 2020
cf9a4dc
[AppService] Bugfix: Better error handling when trying to create dupl…
calvinsID Dec 25, 2020
e836dd2
{Storage} Fix issue #13478 to add more information for requires_sync …
Juliehzl Dec 25, 2020
357c9c9
{Release} Upgrade to Azure CLI 2.17.0 (#16362)
Dec 25, 2020
57ce1e6
fix branch (#16364)
fengzhou-msft Dec 25, 2020
b9f69b6
Migrate to Track 2 mgmt SDK (#16376)
avanigupta Dec 29, 2020
dff16b2
[Storage] Fix #16072: Upload file with big size (#16372)
Juliehzl Dec 29, 2020
ee380ec
add rdbms code owner (#16383)
evelyn-ys Dec 29, 2020
6227e34
Fix a typo (#16370)
gossion Dec 29, 2020
2557860
{Core} Use knack 0.8.0rc2 (#16301)
jiasli Dec 30, 2020
87cbdb0
hotfix for bad name (#16381)
msyyc Dec 30, 2020
269954f
docs: fix simple typo, satsify -> satisfy (#16389)
timgates42 Dec 30, 2020
ab2e074
{Doc} Track 2 Migration Guidance (#16330)
qwordy Dec 31, 2020
1d4a90e
{Release} HotFix: Release 2.17.1 (#16393)
msyyc Dec 31, 2020
dc77512
disable homebrew package test temporarily (#16407)
fengzhou-msft Dec 31, 2020
809389f
[Compute] Fix issue of none storage_profile (#16260)
qwordy Jan 4, 2021
36b337b
Merge remote-tracking branch 'upstream/release' into dev
evelyn-ys Jan 4, 2021
c71c2f9
[AppService] Fix #13907: az webapp config ssl import: Change command …
singlessis Jan 5, 2021
3f760cb
{RDBMS} : Stabilize tests for live-test runs in pipeline. (#16415)
arde0708 Jan 5, 2021
761de62
{Test} Live test pipeline 0.10.0 (#16408)
qwordy Jan 5, 2021
fade4bf
[Role] Fix #11594: az role assignment create: Only show supported val…
jiasli Jan 5, 2021
bd13df4
{Misc.} Bump humanfriendly to 9.1 (#16363)
jiasli Jan 5, 2021
4d11117
Remove the preview tag for server key and ad admin (#16412)
shinilm Jan 5, 2021
1e8f1bb
{AKS} Update region mapping list for Container Insights to include la…
bragi92 Jan 6, 2021
4ac1441
{ARM} Bump azure-mgmt-resource SDK: 10.3.0 to 12.0.0, v2020-06-01 t…
detienne20 Jan 6, 2021
9b20d55
[AppService] Fixes #16125: az webapp ssh if using a windows client, o…
calvinsID Jan 7, 2021
2d39b43
[AppService]: fix for #13291- az webapp deployment slot swap should s…
Kotasudhakarreddy Jan 7, 2021
aa3ac71
{Network} Support list for storage private endpoint connection (#16438)
Juliehzl Jan 7, 2021
4191edb
{Compute} Fix tests (#16425)
qwordy Jan 7, 2021
25cac8b
{Compute} Update _help.py - add link to article for finding an image …
cynthn Jan 8, 2021
72c2203
[Compute] Better error handling of external tokens (#16406)
qwordy Jan 8, 2021
4e1e753
{Core} Add polling start time and end time in telemetry (#16458)
Juliehzl Jan 11, 2021
9601031
[Storage] Fix issue #12291: az storage blob generate-sas does not pro…
Juliehzl Jan 11, 2021
c66daef
[ARM] Az Deployments : Add support for --query-string (#16447)
detienne20 Jan 11, 2021
22d53e3
add pamamiko to legal notice file (#16461)
fengzhou-msft Jan 11, 2021
3269d06
[Compute] Fix a vmss reimage issue (#16483)
qwordy Jan 11, 2021
a854825
{Storage} `az storage container immutability-policy extend`: Fix requ…
Juliehzl Jan 11, 2021
e032bdf
[Compute] vm/vmss extension set: New parameter --enable-auto-upgrade …
qwordy Jan 12, 2021
d7e5dea
{Doc} Track 2 Migration Guidance (#16484)
qwordy Jan 12, 2021
d095076
{Misc.} Update CODEOWNERS (#16382)
jiasli Jan 12, 2021
87f979e
{container} Bugfix #15856: az container exec - remove eol check to av…
bitcloud Jan 12, 2021
8db65c7
[Backup]Added default backup retention as 30 days (#16394)
Jan 12, 2021
701f1cd
set default backup retention value to 30 days (#16500)
akshayneema Jan 13, 2021
ca09633
[ARM] ts: error handling improvement - use of --template-file without…
detienne20 Jan 13, 2021
785d8f4
{Storage} Enable logging for track2 data plane operations (#16439)
Juliehzl Jan 13, 2021
1058618
[AKS] az aks check-acr: Add new check-acr command (#16490)
samkreter Jan 13, 2021
ea298e9
[IoT] Add --tags to IoT Hub create and update (#16336)
c-ryan-k Jan 14, 2021
cddb696
remove --export-all-tables for command az monitor log-analytics works…
kairu-ms Jan 14, 2021
0bcfb50
Patch version in homebrew formula (#16518)
fengzhou-msft Jan 14, 2021
27f5250
{RDBMS} Fixed bugs and updated local context test (#16437)
DaeunYim Jan 14, 2021
2cc0913
[ACR] add --allow-trusted-services support (#16530)
adewaleo Jan 14, 2021
fdea210
bump cffi (#16531)
fengzhou-msft Jan 14, 2021
4720ab9
fix: revert to use old region mapping (#16435)
bragi92 Jan 14, 2021
f5a88f1
[acr] add step in "check-health" command to ensure the identity used …
yugangw-msft Jan 14, 2021
873dfeb
{ACR} Quick Fix (#16441)
rosanch Jan 14, 2021
afdfbab
[Storage] GA PITR and blob service properties in SRP (#16540)
Juliehzl Jan 15, 2021
8930324
[DMS] Merging pg mysql from extension into core (#15746)
temandr Jan 15, 2021
82d9063
[AppService] BREAKING CHANGE: Fix regression where you can't use a ru…
calvinsID Jan 15, 2021
39a4516
{Storage} Remove extension suppression for storage-or-preview becaus…
Juliehzl Jan 15, 2021
da4239a
{Release} Upgrade to Azure CLI 2.18.0 (#16543)
Jan 15, 2021
f53441a
[SQL] Add managed hsm regex match to SQL (#15109)
Yueren-Wang Jan 15, 2021
8fb0be5
[AppConfig] BREAKING CHANGE: az appconfig feature filter add: Support…
avanigupta Jan 18, 2021
edf9ed4
[AppService] az appservice ase/plan ASEv3 support (#16516)
madsd Jan 18, 2021
77ad664
fix broken link (#16569)
yungezz Jan 18, 2021
36bcdae
os-preference and ase private dns (#16575)
madsd Jan 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[ARM] ts: error handling improvement - use of --template-file without…
… --version prohibited (Azure#16446)

* Bug fix

* rerecord test_template_spec_create_and_update

* test updated

Co-authored-by: Dania Etienne <[email protected]>
  • Loading branch information
detienne20 and Dania Etienne authored Jan 13, 2021
commit ca09633aa205dc4ecf967175068469baf1fd6eeb
3 changes: 3 additions & 0 deletions src/azure-cli/azure/cli/command_modules/resource/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1824,6 +1824,9 @@ def create_template_spec(cmd, resource_group_name, name, template_file=None, loc
location = rcf.resource_groups.get(resource_group_name).location
rcf = _resource_templatespecs_client_factory(cmd.cli_ctx)

if template_file and not version:
raise IncorrectUsageError('please provide --version if --template-file is specified')

if version:
Exists = False
if no_prompt is False:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ interactions:
ParameterSetName:
- -g -n -v -l -f --description --version-description
User-Agent:
- python/3.8.0 (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.14.1
- python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1
accept-language:
- en-US
method: GET
Expand All @@ -32,7 +32,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Fri, 13 Nov 2020 04:10:28 GMT
- Thu, 07 Jan 2021 17:53:56 GMT
expires:
- '-1'
pragma:
Expand Down Expand Up @@ -60,8 +60,8 @@ interactions:
ParameterSetName:
- -g -n -v -l -f --description --version-description
User-Agent:
- python/3.8.0 (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.14.1
- python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1
accept-language:
- en-US
method: GET
Expand All @@ -79,7 +79,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Fri, 13 Nov 2020 04:10:28 GMT
- Thu, 07 Jan 2021 17:53:57 GMT
expires:
- '-1'
pragma:
Expand All @@ -95,7 +95,7 @@ interactions:
message: Not Found
- request:
body: '{"location": "westus", "properties": {"description": "AzCLI test root template
spec"}}'
spec"}, "tags": {}}'
headers:
Accept:
- application/json
Expand All @@ -106,36 +106,36 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '86'
- '98'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -g -n -v -l -f --description --version-description
User-Agent:
- python/3.8.0 (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.14.1
- python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_template_specs000001/providers/Microsoft.Resources/templateSpecs/cli-test-create-template-spec000002?api-version=2019-06-01-preview
response:
body:
string: "{\r\n \"location\": \"westus\",\r\n \"systemData\": {\r\n \"createdBy\":
\"[email protected]\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\":
\"2020-11-13T04:10:32.5222805Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n
\ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-11-13T04:10:32.5222805Z\"\r\n
\ },\r\n \"properties\": {\r\n \"description\": \"AzCLI test root template
spec\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_template_specs000001/providers/Microsoft.Resources/templateSpecs/cli-test-create-template-spec000002\",\r\n
string: "{\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"systemData\":
{\r\n \"createdBy\": \"[email protected]\",\r\n \"createdByType\":
\"User\",\r\n \"createdAt\": \"2021-01-07T17:53:59.5486662Z\",\r\n \"lastModifiedBy\":
\"[email protected]\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\":
\"2021-01-07T17:53:59.5486662Z\"\r\n },\r\n \"properties\": {\r\n \"description\":
\"AzCLI test root template spec\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_template_specs000001/providers/Microsoft.Resources/templateSpecs/cli-test-create-template-spec000002\",\r\n
\ \"type\": \"Microsoft.Resources/templateSpecs\",\r\n \"name\": \"cli-test-create-template-spec000002\"\r\n}"
headers:
cache-control:
- no-cache
content-length:
- '773'
- '790'
content-type:
- application/json; charset=utf-8
date:
- Fri, 13 Nov 2020 04:10:34 GMT
- Thu, 07 Jan 2021 17:53:59 GMT
expires:
- '-1'
pragma:
Expand Down Expand Up @@ -226,7 +226,8 @@ interactions:
string(parameters(''instance''))), variables(''removeOptionalsFromHyphenedName''))]",
"name": "[if(parameters(''useHyphen''), variables(''hyphenedNameAfterInstanceCount''),
replace(variables(''hyphenedNameAfterInstanceCount''), ''-'', ''''))]"}, "resources":
[], "outputs": {"name": {"type": "string", "value": "[toLower(variables(''name''))]"}}}}}'
[], "outputs": {"name": {"type": "string", "value": "[toLower(variables(''name''))]"}}}},
"tags": {}}'
headers:
Accept:
- application/json
Expand All @@ -237,27 +238,27 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '6317'
- '6329'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -g -n -v -l -f --description --version-description
User-Agent:
- python/3.8.0 (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.14.1
- python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_template_specs000001/providers/Microsoft.Resources/templateSpecs/cli-test-create-template-spec000002/versions/1.0?api-version=2019-06-01-preview
response:
body:
string: "{\r\n \"location\": \"westus\",\r\n \"systemData\": {\r\n \"createdBy\":
\"[email protected]\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\":
\"2020-11-13T04:10:37.1123264Z\",\r\n \"lastModifiedBy\": \"[email protected]\",\r\n
\ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2020-11-13T04:10:37.1123264Z\"\r\n
\ },\r\n \"properties\": {\r\n \"artifacts\": [],\r\n \"description\":
\"AzCLI test version of root template spec\",\r\n \"template\": {\r\n \"$schema\":
\"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n
string: "{\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"systemData\":
{\r\n \"createdBy\": \"[email protected]\",\r\n \"createdByType\":
\"User\",\r\n \"createdAt\": \"2021-01-07T17:54:00.8486769Z\",\r\n \"lastModifiedBy\":
\"[email protected]\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\":
\"2021-01-07T17:54:00.8486769Z\"\r\n },\r\n \"properties\": {\r\n \"artifacts\":
[],\r\n \"description\": \"AzCLI test version of root template spec\",\r\n
\ \"template\": {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n
\ \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n \"customer\":
{\r\n \"type\": \"string\",\r\n \"minLength\": 2,\r\n \"maxLength\":
3,\r\n \"defaultValue\": \"[resourceGroup().tags['customer-short']]\",\r\n
Expand Down Expand Up @@ -380,11 +381,11 @@ interactions:
cache-control:
- no-cache
content-length:
- '9745'
- '9762'
content-type:
- application/json; charset=utf-8
date:
- Fri, 13 Nov 2020 04:10:37 GMT
- Thu, 07 Jan 2021 17:54:00 GMT
expires:
- '-1'
pragma:
Expand Down Expand Up @@ -416,8 +417,8 @@ interactions:
ParameterSetName:
- --template-spec --yes
User-Agent:
- python/3.8.0 (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.14.1
- python/3.8.3 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1
accept-language:
- en-US
method: DELETE
Expand All @@ -431,7 +432,7 @@ interactions:
content-length:
- '0'
date:
- Fri, 13 Nov 2020 04:10:42 GMT
- Thu, 07 Jan 2021 17:54:03 GMT
expires:
- '-1'
pragma:
Expand Down
Loading