Deploying python3packages for Azure Automation does not complete
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
**Bicep version**
Bicep CLI version 0.22.6
**Describe the bug**
Am deploying an Azure Automation account using bicep, the runbooks use Python 3.8 and require the following packages:
azure_core, azure_identity, azure_mgmt_core, typing_extensions, msal.
Within my azure automation module I have the following:
```bicep
resource package 'Microsoft.Automation/automationAccounts/python3Packages@2022-08-08' = [for package in automation.packages: {
name: package.name
parent: autoaccount
properties: {
contentLink: {
uri: package.url
version: '3.8'
}
}
}]
```
And which takes a packages object defined in a bicepparam file:
```
packages: [
{
name: 'azure_core'
url: 'https://files.pythonhosted.org/packages/98/3a/d53e2b8a75c448ef45d7ae4b0659eb6c0d48978f25a709e2a39894a48704/azure_core-1.29.4-py3-none-any.whl'
}
{
name: 'azure_identity'
url: 'https://files.pythonhosted.org/packages/42/b6/e2757da4800e0f402b23d0ca6f1e88726263a501c198729cd865f45f3e22/azure_identity-1.14.1-py3-none-any.whl'
}
{
name: 'azure_mgmt_core'
url: 'https://files.pythonhosted.org/packages/b1/5a/3a31578b840600dffb75f3ffb383cc4c5e8ea0d06a1085f86b17e18c3193/azure_mgmt_core-1.4.0-py3-none-any.whl'
}
{
name: 'typing_extensions'
url: 'https://files.pythonhosted.org/packages/24/21/7d397a4b7934ff4028987914ac1044d3b7d52712f30e2ac7a2ae5bc86dd0/typing_extensions-4.8.0-py3-none-any.whl'
}
{
name: 'msal'
url: 'https://files.pythonhosted.org/packages/35/33/0fd933b627879a9855d02a83a57929b45d0bdbeb050ddd63109cc404fbf6/msal-1.24.1-py2.py3-none-any.whl'
}
]
```
Running the deployment times out after 2 hours. Everything in the deployment completes after 15 minutes apart from the import of the python3 packages which just sit at importing. If I comment out the packages section from my automation module, the deployment finishes correctly.
Running with the debug flag produces this:
```
cli.azure.cli.core.azclierror: {
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/providers/Microsoft.Resources/deployments/xxx-xxx-ne-base",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Resources/deployments/aa-xxx-xxx-ne",
"message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Resources/deployments/aa-xxx-xxx-ne",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/azure_core",
"message": "The resource provision operation did not complete within the allowed timeout period."
},
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/azure_identity",
"message": "The resource provision operation did not complete within the allowed timeout period."
},
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/azure_mgmt_core",
"message": "The resource provision operation did not complete within the allowed timeout period."
},
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/msal",
"message": "The resource provision operation did not complete within the allowed timeout period."
},
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/typing_extensions",
"message": "The resource provision operation did not complete within the allowed timeout period."
}
]
}
]
}
]
}
}
az_command_data_logger: {
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/providers/Microsoft.Resources/deployments/xxx-xxx-ne-base",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Resources/deployments/aa-xxx-xxx-ne",
"message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Resources/deployments/aa-xxx-xxx-ne",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/azure_core",
"message": "The resource provision operation did not complete within the allowed timeout period."
},
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/azure_identity",
"message": "The resource provision operation did not complete within the allowed timeout period."
},
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/azure_mgmt_core",
"message": "The resource provision operation did not complete within the allowed timeout period."
},
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/msal",
"message": "The resource provision operation did not complete within the allowed timeout period."
},
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/xxxxxxxx-33xx-40xx-aaxx-xxxxxxxxxxxx/resourceGroups/rg-xxx-xxx-ne-bse/providers/Microsoft.Automation/automationAccounts/aa-xxx-xxx-ne/python3Packages/typing_extensions",
"message": "The resource provision operation did not complete within the allowed timeout period."
}
]
}
]
}
]
}
}
```
**To Reproduce**
Create an Azure Automation deployment which includes an import of python3packages.
**Additional context**
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository file, test, or entry point is named. Start by reproducing the Azure Automation deployment with the listed python3Packages resources and inspect the reported deployment operations; the issue provides no repository-level completion criterion beyond determining why package imports time out.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100