{"id":23339,"library":"azure-mgmt-deploymentmanager","title":"Microsoft Azure Deployment Manager Client Library for Python","description":"Azure Deployment Manager is a service that enables coordinated, safe deployment of complex multi-region services. This client library provides Python APIs to manage deployment resources such as rollouts, service topologies, services, service units, steps, and artifact sources. It is part of the Azure SDK for Python. Current version: 1.0.0. Release cadence: stable, no recent releases.","status":"active","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/Azure/azure-sdk-for-python","tags":["azure","deployment-manager","sdk","management","microsoft"],"install":[{"cmd":"pip install azure-mgmt-deploymentmanager","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Required for Azure SDK base functionality, credential types, and HTTP pipeline.","package":"azure-core","optional":false},{"reason":"Required for authentication with DefaultAzureCredential or other credential types.","package":"azure-identity","optional":false}],"imports":[{"note":"DeploymentManagerClient is in the top-level package, not in models.","wrong":"from azure.mgmt.deploymentmanager.models import DeploymentManagerClient","symbol":"DeploymentManagerClient","correct":"from azure.mgmt.deploymentmanager import DeploymentManagerClient"},{"note":"Rollout is a model class, located in the models submodule.","wrong":"from azure.mgmt.deploymentmanager import Rollout","symbol":"Rollout","correct":"from azure.mgmt.deploymentmanager.models import Rollout"}],"quickstart":{"code":"import os\nfrom azure.identity import DefaultAzureCredential\nfrom azure.mgmt.deploymentmanager import DeploymentManagerClient\n\nsubscription_id = os.environ.get('AZURE_SUBSCRIPTION_ID', '')\ncredential = DefaultAzureCredential()\nclient = DeploymentManagerClient(credential, subscription_id)\n# list all rollouts in a resource group\nrollouts = client.rollouts.list('myResourceGroup')\nfor rollout in rollouts:\n    print(rollout.name)","lang":"python","description":"Authenticate and list all rollouts in a resource group."},"warnings":[{"fix":"Consider migrating to Azure DevOps deployment pipelines or Terraform for resource deployment.","message":"Azure Deployment Manager service was deprecated by Microsoft in 2023. New deployments should use alternative solutions like Azure DevOps or Terraform. The library may still work but no new features are expected.","severity":"deprecated","affected_versions":"all"},{"fix":"Always provide all required properties as shown in documentation. Use the API reference to check required fields.","message":"Models like Rollout, ServiceUnit, Step have many required properties. Omitting required properties when creating resources causes AttributeError or validation errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Verify subscription_id and credential. Use correct import: from azure.mgmt.deploymentmanager import DeploymentManagerClient","cause":"The client object may be incorrect due to wrong subscription ID or authentication. Also, the 'rollouts' property is an operation group, ensure correct import.","error":"AttributeError: 'DeploymentManagerClient' object has no attribute 'rollouts'"},{"fix":"Check that the rollout name and resource group are correct and that the rollout was created.","cause":"The specified rollout name or resource group does not exist.","error":"azure.core.exceptions.HttpResponseError: (ResourceNotFound) The Resource 'Microsoft.DeploymentManager/rollouts/...' under resource group '...' was not found."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}