-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe the bug
We upgraded az-cli from 2.33.1 to 2.34.1 and it broke our app service deployment pipeline, at the point where it creates a deployment slot. It seems to be because the az-cli command is attempting to copy the azure-blob mapping information over to the slot. It is erroring with the message "Required parameter AccessKey is missing.", even though there is no available AccessKey parameter for the az webapp deployment slot create command.
As a result, the slot gets created, but it is incomplete. Not all the configuration gets copied over from the configuration source.
To Reproduce
- Create an app service. In Configuration Path mappings mount an AzureBlob account with an Access key.
- Use az-cli to create a staging slot. for the configuration source, use the app service you created.
Expected behavior
A deployment slot gets created and all the config info gets copied over from the app service.
Environment summary
az-cli 2.34.1 on DOS or LINUX (happens on both)
Additional context
I ran the failing command with the --debugging flag and I can see where it is failing:
cli.azure.cli.core.sdk.policies: {"properties": {"numberOfWorkers": 1, "defaultDocuments": [] ....,xxxxxprivateinfoxxxxxxxxxx ... "http20Enabled": true, "minTlsVersion": "1.2", "scmMinTlsVersion": "1.0", "ftpsState": "Disabled", "preWarmedInstanceCount": 0, "functionAppScaleLimit": 0, "functionsRuntimeScaleMonitoringEnabled": false, "minimumElasticInstanceCount": 0, "azureStorageAccounts": {"lucene-index": {"type": "AzureBlob", "accountName": "xxxprivateinfo", "shareName": "xxxprivateinfo", "mountPath": "/tmp/lucene"}}}}
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "PATCH /subscriptions/xxxprivateinfo/web?api-version=2021-03-01 HTTP/1.1" 400 391
cli.azure.cli.core.sdk.policies: Response status: 400
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '391'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'ETag': '"1D849DB703AD940"'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'Server': 'Microsoft-IIS/10.0'
cli.azure.cli.core.sdk.policies: 'X-AspNet-Version': '4.0.30319'
cli.azure.cli.core.sdk.policies: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1199'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '5ab0772a-3e6a-4532-aadf-272fcb708596'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '5ab0772a-3e6a-4532-aadf-272fcb708596'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'EASTUS:20220406T172627Z:5ab0772a-3e6a-4532-aadf-272fcb708596'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'Date': 'Wed, 06 Apr 2022 17:26:26 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"Code":"BadRequest","Message":"Required parameter AccessKey is missing.","Target":null,"Details":[{"Message":"Required parameter AccessKey is missing."},{"Code":"BadRequest"},{"ErrorEntity":{"ExtendedCode":"01010","MessageTemplate":"Required parameter {0} is missing.","Parameters":["AccessKey"],"Code":"BadRequest","Message":"Required parameter AccessKey is missing."}}],"Innererror":null}
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):