PS C:\Downloads\Docker> az deployment group create --resource-group MyResource --template-file .\MyTemplate.json --debug Command arguments: ['deployment', 'group', 'create', '--resource-group', 'MyResource', '--template-file', '.\\MyTemplate.json', '--debug'] Event: Cli.PreExecute [] Event: CommandParser.OnGlobalArgumentsCreate [, , ] Event: CommandInvoker.OnPreCommandTableCreate [] Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm'] Loaded module 'acr' in 0.042 seconds. Loaded module 'acs' in 0.030 seconds. Loaded module 'advisor' in 0.008 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'ams' in 0.021 seconds. Loaded module 'apim' in 0.009 seconds. Loaded module 'appconfig' in 0.011 seconds. Loaded module 'appservice' in 0.041 seconds. Loaded module 'backup' in 0.014 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'batch' in 0.031 seconds. Loaded module 'batchai' in 0.011 seconds. Loaded module 'billing' in 0.007 seconds. Loaded module 'botservice' in 0.016 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'cdn' in 0.403 seconds. Loaded module 'cloud' in 0.007 seconds. Loaded module 'cognitiveservices' in 0.008 seconds. Loaded module 'configure' in 0.005 seconds. Loaded module 'consumption' in 0.010 seconds. Loaded module 'container' in 0.009 seconds. Loaded module 'cosmosdb' in 0.026 seconds. Loaded module 'deploymentmanager' in 0.010 seconds. Loaded module 'dla' in 0.019 seconds. Loaded module 'dls' in 0.012 seconds. Loaded module 'dms' in 0.008 seconds. Loaded module 'eventgrid' in 0.011 seconds. Loaded module 'eventhubs' in 0.013 seconds. Loaded module 'extension' in 0.004 seconds. Loaded module 'feedback' in 0.004 seconds. Loaded module 'find' in 0.004 seconds. Loaded module 'hdinsight' in 0.011 seconds. Loaded module 'interactive' in 0.003 seconds. Loaded module 'iot' in 0.019 seconds. Loaded module 'iotcentral' in 0.007 seconds. Loaded module 'keyvault' in 0.029 seconds. Loaded module 'kusto' in 0.012 seconds. Loaded module 'lab' in 0.015 seconds. Loaded module 'managedservices' in 0.010 seconds. Loaded module 'maps' in 0.008 seconds. Loaded module 'monitor' in 0.024 seconds. Loaded module 'natgateway' in 0.009 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'netappfiles' in 0.015 seconds. Loaded module 'network' in 0.100 seconds. Loaded module 'policyinsights' in 0.009 seconds. Loaded module 'privatedns' in 0.021 seconds. Loaded module 'profile' in 0.009 seconds. Loaded module 'rdbms' in 0.026 seconds. Loaded module 'redis' in 0.014 seconds. Loaded module 'relay' in 0.016 seconds. Loaded module 'reservations' in 0.008 seconds. Loaded module 'resource' in 0.037 seconds. Loaded module 'role' in 0.016 seconds. Loaded module 'search' in 0.007 seconds. Loaded module 'security' in 0.011 seconds. Loaded module 'servicebus' in 0.025 seconds. Loaded module 'servicefabric' in 0.013 seconds. Loaded module 'signalr' in 0.009 seconds. Loaded module 'sql' in 0.033 seconds. Loaded module 'sqlvm' in 0.010 seconds. Event: CommandLoader.OnLoadCommandTable [] Loaded module 'storage' in 0.107 seconds. Loaded module 'vm' in 0.112 seconds. Loaded all modules in 1.539 seconds. (note: there's always an overhead with the first module loaded) Extensions directory: 'C:\Users\Administrator\.azure\cliextensions' Event: CommandInvoker.OnPreCommandTableTruncate [] az_command_data_logger : command args: deployment group create --resource-group {} --template-file {} --debug metadata file logging enabled - writing logs to 'C:\Users\Administrator\.azure\commands'. Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x03B7F198>] Event: CommandInvoker.OnPostArgumentLoad [] Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x03B9D8A0>, .add_cache_arguments at 0x03B9D978>] Event: CommandInvoker.OnCommandTableLoaded [] Event: CommandInvoker.OnPreParseArgs [] Event: CommandInvoker.OnPostParseArgs [, , .parse_ids_arguments at 0x03B9D930>, ] attempting to read file .\MyTemplate.json as utf-8-sig Getting management service client client_type=ResourceManagementClient msrest.universal_http.requests : Configuring retry: max_retries=4, backoff_factor=0.8, max_backoff=90 attempting to read file C:\Users\Administrator\.azure\accessTokens.json as utf-8-sig adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - Authority:Performing instance discovery: ... adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - Authority:Performing static instance discovery adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - Authority:Authority validated via static instance discovery adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - TokenRequest:Getting token from cache with refresh if necessary. adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'} adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'} adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - CacheDriver:Found 2 potential entries. adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - CacheDriver:Resource specific token found. adal-python : ba238a47-6e48-44d2-a3af-031787aeb250 - CacheDriver:Returning token from cache lookup, AccessTokenId: b'8c2wAZz/H+Ou7jyXjNk/Dk4ChPJeKFGUsSUjl8U9fGA=', RefreshTokenId: b'L9fwZJL7w/Xlx/g2USVXBnxngm/Lir9m8MY6Ko7bGq0=' msrest.http_logger : Request URL: 'https://management.azure.com/subscriptions/ABCD-EFGH-IJKL/resourcegroups/MYResource/providers/Microsoft.Resources/deployments/MyContainer/validate?api-version=2019-07-01' msrest.http_logger : Request method: 'POST' msrest.http_logger : Request headers: msrest.http_logger : 'Accept': 'application/json' msrest.http_logger : 'Content-Type': 'application/json; charset=utf-8' msrest.http_logger : 'accept-language': 'en-US' msrest.http_logger : 'Content-Length': '1796' msrest.http_logger : 'User-Agent': 'python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2 azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0' msrest.http_logger : Request body: msrest.http_logger : XYZ******* msrest.universal_http : Configuring redirects: allow=True, max=30 msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None msrest.universal_http : Configuring proxies: '' msrest.universal_http : Evaluate proxies against ENV settings: True urllib3.connectionpool : Starting new HTTPS connection (1): management.azure.com:443 urllib3.connectionpool : https://management.azure.com:443 "POST /subscriptions/ABCD-EFGH-IJKL/resourcegroups/MyResource/providers/Microsoft.Resources/deployments/MyContainer/validate?api-version=2019-07-01 HTTP/1.1" 403 512 msrest.http_logger : Response status: 403 msrest.http_logger : Response headers: msrest.http_logger : 'Cache-Control': 'no-cache' msrest.http_logger : 'Pragma': 'no-cache' msrest.http_logger : 'Content-Type': 'application/json; charset=utf-8' msrest.http_logger : 'Expires': '-1' msrest.http_logger : 'x-ms-failure-cause': 'gateway' msrest.http_logger : 'x-ms-request-id': '44802b43-3987-4e51-85cb-18820414be8e' msrest.http_logger : 'x-ms-correlation-request-id': '44802b43-3987-4e51-85cb-18820414be8e' msrest.http_logger : 'x-ms-routing-request-id': 'WESTINDIA:20200917T061952Z:44802b43-3987-4e51-85cb-18820414be8e' msrest.http_logger : 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' msrest.http_logger : 'X-Content-Type-Options': 'nosniff' msrest.http_logger : 'Date': 'Thu, 17 Sep 2020 06:19:52 GMT' msrest.http_logger : 'Connection': 'close' msrest.http_logger : 'Content-Length': '512' msrest.http_logger : Response content: msrest.http_logger : {"error":{"code":"AuthorizationFailed","message":"The client 'MyAccount@mytenant.onmicrosoft.com' with object id 'b13d6d27-0359-4ba3-88b1-5c1c5a4ff6bb' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/ABCD-EFGH-IJKL/resourcegroups/MyResource/providers/Microsoft.Resources/deployments/MyContainer' or the scope is invalid. If access was recently granted, please refresh your credentials."}} msrest.exceptions : The client 'MyAccount@mytenant.onmicrosoft.com' with object id 'b13d6d27-0359-4ba3-88b1-5c1c5a4ff6bb' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/ABCD-EFGH-IJKL/resourcegroups/MyResource/providers/Microsoft.Resources/deployments/MyContainer' or the scope is invalid. If access was recently granted, please refresh your credentials. cli.azure.cli.core.util : Azure Error: AuthorizationFailed Message: The client 'MyAccount@mytenant.onmicrosoft.com' with object id 'b13d6d27-0359-4ba3-88b1-5c1c5a4ff6bb' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/ABCD-EFGH-IJKL/resourcegroups/MyResource/providers/Microsoft.Resources/deployments/MyContainer' or the scope is invalid. If access was recently granted, please refresh your credentials. Azure Error: AuthorizationFailed Message: The client 'MyAccount@mytenant.onmicrosoft.com' with object id 'b13d6d27-0359-4ba3-88b1-5c1c5a4ff6bb' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/ABCD-EFGH-IJKL/resourcegroups/MyResource/providers/Microsoft.Resources/deployments/MyContainer' or the scope is invalid. If access was recently granted, please refresh your credentials. az_command_data_logger : exit code: 1 telemetry.save : Save telemetry record of length 2487 in cache telemetry.check : Negative: The C:\Users\Administrator\.azure\telemetry.txt was modified at 2020-09-17 11:47:04.595628, which in less than 600.000000 s command ran in 3.191 seconds. PS C:\Downloads\Docker>