-
Notifications
You must be signed in to change notification settings - Fork 3k
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
az deployment {sub} create --template-uri... templateLink no longer available. #12990
Comments
add to S169 |
I can confirm this is happening as well, it looks like the template is downloaded and then provided to Bascially THIS is happening with POST https://management.azure.com/subscriptions/<yoink>/resourcegroups/rg-vnet-dmz/providers/Microsoft.Resources/deployments/bb-03-vm/validate?api-version=2019-07-01 HTTP/1.1
Host: management.azure.com
User-Agent: python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI)
Accept-Encoding: gzip, deflate
Accept: application/json
Connection: keep-alive
Authorization: Bearer <yoink>
x-ms-client-request-id: c09aefa6-8b28-11ea-83a7-c49ded299454
CommandName: deployment group create
ParameterSetName: --name --subscription --resource-group --template-uri
Content-Type: application/json; charset=utf-8
accept-language: en-US
Content-Length: 723
{
"properties":{
"parameters":{
},
"mode":"Incremental",
"template":{
"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion":"1.0.0.0",
"parameters":{
},
"variables":{
"virtualMachineTemplate":"[deployment().properties.templateLink.uri]"
},
"resources":[
],
"outputs":{
"blahh":{
"type":"object",
"value":"[deployment().properties]"
}
}
}
}
} Instead of: POST https://management.azure.com/subscriptions/<yoink>/resourcegroups/rg-vnet-dmz/providers/Microsoft.Resources/deployments/bb-03-vm/validate?api-version=2019-07-01 HTTP/1.1
Host: management.azure.com
User-Agent: python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI)
Accept-Encoding: gzip, deflate
Accept: application/json
Connection: keep-alive
Authorization: Bearer <yoink>
x-ms-client-request-id: c09aefa6-8b28-11ea-83a7-c49ded299454
CommandName: deployment group create
ParameterSetName: --name --subscription --resource-group --template-uri
Content-Type: application/json; charset=utf-8
accept-language: en-US
Content-Length: 196
{
"properties":{
"templateLink": {"uri": "https://ckmsftcloudshell01.blob.core.windows.net/anon/virtualMachines6.json"},
"parameters":{
},
"mode":"Incremental"
}
} for the command |
add to S171 |
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az deployment create
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az deployment create --name {} --location {} --template-uri {} --parameters {} --parameters {} --verbose
Expected Behavior
I used the --template-uri to supply the template so I expect deployment().properties.templateLink
to be available to use in the template like in earlier versions of az cli. I'm guessing the az cli is now downloading the template from the source and running it similar to a local template? az deployment sub create has the same behavior. I ran the templates with an earlier version of az cli successfully (version 2.0.69).
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: