Microsoft Azure Automation Management Client Library for Python
Project description
Microsoft Azure SDK for Python
This is the Microsoft Azure Automation Client Library. This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the azure sdk python release.
Disclaimer
Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691
Getting started
Prerequisites
- Python 3.10+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-automation
pip install azure-identity
Authentication
By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.
In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.
With above configuration, client can be authenticated by following code:
from azure.identity import DefaultAzureCredential
from azure.mgmt.automation import AutomationClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = AutomationClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at:
- Search Automation on docs.microsoft.com
- Azure Python Mgmt SDK Samples Repo
Troubleshooting
Next steps
Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Release History
1.1.0b5 (2026-05-27)
Features Added
- Client
AutomationClientadded parametercloud_settingin method__init__ - Client
AutomationClientadded methodsend_request - Client
AutomationClientadded operation groupruntime_environments - Client
AutomationClientadded operation grouppackage - Model
Certificateadded propertysystem_data - Model
Connectionadded propertysystem_data - Model
ConnectionTypeadded propertysystem_data - Model
Credentialadded propertysystem_data - Model
DscConfigurationadded propertysystem_data - Model
DscNodeadded propertysystem_data - Model
DscNodeConfigurationadded propertysystem_data - Model
HybridRunbookWorkeradded propertytags - Model
HybridRunbookWorkeradded propertylocation - Model
HybridRunbookWorkerGroupadded propertytags - Model
HybridRunbookWorkerGroupadded propertylocation - Model
Jobadded propertysystem_data - Model
JobCollectionItemadded propertysystem_data - Model
JobScheduleadded propertysystem_data - Model
Moduleadded propertysystem_data - Model
PrivateEndpointConnectionadded propertysystem_data - Model
PrivateLinkResourceadded propertysystem_data - Model
ProxyResourceadded propertysystem_data - Model
Resourceadded propertysystem_data - Model
Runbookadded propertysystem_data - Enum
RunbookTypeEnumadded memberPOWER_SHELL72 - Enum
RunbookTypeEnumadded memberPYTHON - Model
Scheduleadded propertysystem_data - Model
SoftwareUpdateConfigurationadded propertysystem_data - Model
SourceControladded propertysystem_data - Model
TestJobCreateParametersadded propertyruntime_environment - Model
TrackedResourceadded propertysystem_data - Model
Variableadded propertysystem_data - Model
Watcheradded propertysystem_data - Model
Webhookadded propertysystem_data - Added model
AutomationErrorResponse - Added model
DeletedRunbook - Added model
DeletedRunbookProperties - Added model
ErrorAdditionalInfo - Added model
JobRuntimeEnvironment - Added model
Package - Added model
PackageCreateOrUpdateParameters - Added model
PackageCreateOrUpdateProperties - Added model
PackageErrorInfo - Added model
PackageProperties - Added enum
PackageProvisioningState - Added model
PackageUpdateParameters - Added model
PackageUpdateProperties - Added model
RuntimeEnvironment - Added model
RuntimeEnvironmentProperties - Added model
RuntimeEnvironmentUpdateParameters - Added model
RuntimeEnvironmentUpdateProperties - Added model
RuntimeProperties - Operation group
AutomationAccountOperationsadded methodlist_deleted_runbooks - Operation group
HybridRunbookWorkersOperationsadded methodpatch - Added operation group
PackageOperations - Added operation group
RuntimeEnvironmentsOperations
Breaking Changes
- This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
- For the method breakings, please refer to https://aka.ms/azsdk/python/migrate/operations for migration.
- Model
AgentRegistrationrenamed its instance variablekeystokeys_property - Model
AutomationAccountCreateOrUpdateParametersmoved instance variablesku,encryption,public_network_accessanddisable_local_authunder propertypropertieswhose type isAutomationAccountCreateOrUpdateProperties - Model
AutomationAccountUpdateParametersmoved instance variablesku,encryption,public_network_accessanddisable_local_authunder propertypropertieswhose type isAutomationAccountUpdateProperties - Model
CertificateCreateOrUpdateParametersmoved instance variablebase64_value,description,thumbprintandis_exportableunder propertypropertieswhose type isCertificateCreateOrUpdateProperties - Model
CertificateUpdateParametersmoved instance variabledescriptionunder propertypropertieswhose type isCertificateUpdateProperties - Model
ConnectionCreateOrUpdateParametersmoved instance variabledescription,connection_typeandfield_definition_valuesunder propertypropertieswhose type isConnectionCreateOrUpdateProperties - Model
ConnectionTypeCreateOrUpdateParametersmoved instance variableis_globalandfield_definitionsunder propertypropertieswhose type isConnectionTypeCreateOrUpdateProperties - Model
ConnectionUpdateParametersmoved instance variabledescriptionandfield_definition_valuesunder propertypropertieswhose type isConnectionUpdateProperties - Model
CredentialCreateOrUpdateParametersmoved instance variableuser_name,passwordanddescriptionunder propertypropertieswhose type isCredentialCreateOrUpdateProperties - Model
CredentialUpdateParametersmoved instance variableuser_name,passwordanddescriptionunder propertypropertieswhose type isCredentialUpdateProperties - Model
DscConfigurationCreateOrUpdateParametersmoved instance variablelog_verbose,log_progress,source,parametersanddescriptionunder propertypropertieswhose type isDscConfigurationCreateOrUpdateProperties - Model
DscConfigurationUpdateParametersmoved instance variablelog_verbose,log_progress,source,parametersanddescriptionunder propertypropertieswhose type isDscConfigurationCreateOrUpdateProperties - Model
DscNodeUpdateParametersPropertiesmoved instance variablenameunder propertynode_configurationwhose type isDscNodeConfigurationAssociationProperty - Model
ErrorResponsemoved instance variablecodeandmessageunder propertyerrorwhose type isErrorDetail - Model
HybridRunbookWorkerCreateParametersmoved instance variablevm_resource_idunder propertypropertieswhose type isHybridRunbookWorkerCreateOrUpdateParameters - Model
HybridRunbookWorkerGroupCreateOrUpdateParametersmoved instance variablecredentialunder propertypropertieswhose type isHybridRunbookWorkerGroupCreateOrUpdateProperties - Model
JobCreateParametersmoved instance variablerunbook,parametersandrun_onunder propertypropertieswhose type isJobCreateProperties - Model
JobScheduleCreateParametersmoved instance variableschedule,runbook,run_onandparametersunder propertypropertieswhose type isJobScheduleCreateProperties - Model
KeyListResultrenamed its instance variablekeystokeys_property - Model
ModuleCreateOrUpdateParametersmoved instance variablecontent_linkunder propertypropertieswhose type isModuleCreateOrUpdateProperties - Renamed enum value
ModuleProvisioningState.CANCELLEDtoModuleProvisioningState.CANCELED - Model
ModuleUpdateParametersmoved instance variablecontent_linkunder propertypropertieswhose type isModuleUpdateProperties - Model
Operationmoved instance variableservice_specificationunder propertypropertieswhose type isOperationPropertiesFormat - Model
PythonPackageCreateParametersmoved instance variablecontent_linkunder propertypropertieswhose type isPythonPackageCreateProperties - Model
RunbookCreateOrUpdateParametersmoved instance variablelog_verbose,log_progress,runbook_type,draft,publish_content_link,descriptionandlog_activity_traceunder propertypropertieswhose type isRunbookCreateOrUpdateProperties - Model
RunbookUpdateParametersmoved instance variabledescription,log_verbose,log_progressandlog_activity_traceunder propertypropertieswhose type isRunbookUpdateProperties - Model
ScheduleCreateOrUpdateParametersmoved instance variabledescription,start_time,expiry_time,interval,frequency,time_zoneandadvanced_scheduleunder propertypropertieswhose type isScheduleCreateOrUpdateProperties - Model
ScheduleUpdateParametersmoved instance variabledescriptionandis_enabledunder propertypropertieswhose type isScheduleUpdateProperties - Model
SoftwareUpdateConfigurationMachineRunmoved instance variabletarget_computer,target_computer_type,software_update_configuration,status,os_type,correlation_id,source_computer_id,start_time,end_time,configured_duration,job,creation_time,created_by,last_modified_time,last_modified_byanderrorunder propertypropertieswhose type isUpdateConfigurationMachineRunProperties - Model
SourceControlCreateOrUpdateParametersmoved instance variablerepo_url,branch,folder_path,auto_sync,publish_runbook,source_type,security_tokenanddescriptionunder propertypropertieswhose type isSourceControlCreateOrUpdateProperties - Model
SourceControlSyncJobCreateParametersmoved instance variablecommit_idunder propertypropertieswhose type isSourceControlSyncJobCreateProperties - Model
SourceControlUpdateParametersmoved instance variablebranch,folder_path,auto_sync,publish_runbook,security_tokenanddescriptionunder propertypropertieswhose type isSourceControlUpdateProperties - Model
VariableCreateOrUpdateParametersmoved instance variablevalue,descriptionandis_encryptedunder propertypropertieswhose type isVariableCreateOrUpdateProperties - Model
VariableUpdateParametersmoved instance variablevalueanddescriptionunder propertypropertieswhose type isVariableUpdateProperties - Model
WatcherUpdateParametersmoved instance variableexecution_frequency_in_secondsunder propertypropertieswhose type isWatcherUpdateProperties - Model
WebhookCreateOrUpdateParametersmoved instance variableis_enabled,uri,expiry_time,parameters,runbookandrun_onunder propertypropertieswhose type isWebhookCreateOrUpdateProperties - Model
WebhookUpdateParametersmoved instance variableis_enabled,run_on,parametersanddescriptionunder propertypropertieswhose type isWebhookUpdateProperties - Deleted operation group
AutomationClient.dsc_compilation_job/AutomationClient.dsc_compilation_job_streamand their corresponding modelsDscCompilationJob/DscCompilationJobCreateParameterswere also deleted - Method
DscConfigurationOperations.list_by_automation_accountchanged its parameterinlinecountfrompositional_or_keywordtokeyword_only - Method
DscNodeConfigurationOperations.list_by_automation_accountchanged its parameterinlinecountfrompositional_or_keywordtokeyword_only - Method
DscNodeOperations.list_by_automation_accountchanged its parameterinlinecountfrompositional_or_keywordtokeyword_only - Method
JobOperations.createchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobOperations.getchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobOperations.get_outputchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobOperations.get_runbook_contentchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobOperations.list_by_automation_accountchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobOperations.resumechanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobOperations.stopchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobOperations.suspendchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobStreamOperations.getchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
JobStreamOperations.list_by_jobchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
SoftwareUpdateConfigurationMachineRunsOperations.get_by_idchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
SoftwareUpdateConfigurationMachineRunsOperations.listchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
SoftwareUpdateConfigurationRunsOperations.get_by_idchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
SoftwareUpdateConfigurationRunsOperations.listchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
SoftwareUpdateConfigurationsOperations.createchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
SoftwareUpdateConfigurationsOperations.deletechanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
SoftwareUpdateConfigurationsOperations.get_by_namechanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
SoftwareUpdateConfigurationsOperations.listchanged its parameterclient_request_idfrompositional_or_keywordtokeyword_only - Method
DscConfigurationOperations.get_contentchanged return type fromIterator[bytes]tostr - Method
NodeReportsOperations.get_contentchanged return type fromJSONtostr - Method
RunbookDraftOperations.begin_replace_contentchanged return type fromLROPoller[Iterator[bytes]]toLROPoller[None] - Method
RunbookDraftOperations.get_contentchanged return type fromIterator[bytes]tostr - Method
RunbookOperations.get_contentchanged return type fromIterator[bytes]tostr
Other Changes
- Deleted model
JobListResultV2/SourceControlSyncJobStreamsListBySyncJob/RunbookCreateOrUpdateDraftParameters/RunbookCreateOrUpdateDraftPropertieswhich actually were not used by SDK users
1.0.1 (2026-05-14)
Other Changes
- Regenerated with latest code generator tool
1.1.0b4 (2024-11-05)
Other Changes
- Update dependencies
1.1.0b3 (2022-12-12)
Features Added
- Added operation group DeletedAutomationAccountsOperations
- Added operation group Python3PackageOperations
- Model HybridRunbookWorkerGroupCreateOrUpdateParameters has a new parameter name
- Model Operation has a new parameter origin
- Model Operation has a new parameter service_specification
- Model OperationDisplay has a new parameter description
Breaking Changes
- Model HybridRunbookWorkerGroup no longer has parameter hybrid_runbook_workers
- Operation DscConfigurationOperations.create_or_update no longer has parameter content_type
- Operation DscConfigurationOperations.update no longer has parameter content_type
- Operation HybridRunbookWorkerGroupOperations.update has a new required parameter hybrid_runbook_worker_group_updation_parameters
- Operation HybridRunbookWorkerGroupOperations.update no longer has parameter parameters
1.1.0b2 (2022-07-18)
Features
- Added operation HybridRunbookWorkerGroupOperations.create
- Added operation group AutomationClientOperationsMixin
- Added operation group HybridRunbookWorkersOperations
- Added operation group PrivateEndpointConnectionsOperations
- Added operation group PrivateLinkResourcesOperations
- Model AutomationAccount has a new parameter automation_hybrid_service_url
- Model AutomationAccount has a new parameter disable_local_auth
- Model AutomationAccount has a new parameter encryption
- Model AutomationAccount has a new parameter identity
- Model AutomationAccount has a new parameter private_endpoint_connections
- Model AutomationAccount has a new parameter public_network_access
- Model AutomationAccount has a new parameter system_data
- Model AutomationAccountCreateOrUpdateParameters has a new parameter disable_local_auth
- Model AutomationAccountCreateOrUpdateParameters has a new parameter encryption
- Model AutomationAccountCreateOrUpdateParameters has a new parameter identity
- Model AutomationAccountCreateOrUpdateParameters has a new parameter public_network_access
- Model AutomationAccountUpdateParameters has a new parameter disable_local_auth
- Model AutomationAccountUpdateParameters has a new parameter encryption
- Model AutomationAccountUpdateParameters has a new parameter identity
- Model AutomationAccountUpdateParameters has a new parameter public_network_access
- Model HybridRunbookWorker has a new parameter id
- Model HybridRunbookWorker has a new parameter registered_date_time
- Model HybridRunbookWorker has a new parameter system_data
- Model HybridRunbookWorker has a new parameter type
- Model HybridRunbookWorker has a new parameter vm_resource_id
- Model HybridRunbookWorker has a new parameter worker_name
- Model HybridRunbookWorker has a new parameter worker_type
- Model HybridRunbookWorkerGroup has a new parameter system_data
- Model HybridRunbookWorkerGroup has a new parameter type
- Operation DscConfigurationOperations.create_or_update has a new optional and keyword-only parameter content_type
- Operation DscConfigurationOperations.update has a new optional and keyword-only parameter content_type
Breaking changes
- Model HybridRunbookWorker no longer has parameter registration_time
1.1.0b1 (2021-03-16)
Features
- Model SoftwareUpdateConfigurationCollectionItem has a new parameter tasks
1.0.0 (2020-12-17)
- GA release
1.0.0b1 (2020-11-11)
This is beta preview version.
This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
General breaking changes
-
Credential system has been completly revamped:
azure.common.credentialsormsrestazure.azure_active_directoryinstances are no longer supported, use theazure-identityclasses instead: https://pypi.org/project/azure-identity/credentialsparameter has been renamedcredential
-
The
configattribute no longer exists on a client, configuration should be passed as kwarg. Example:MyClient(credential, subscription_id, enable_logging=True). For a complete set of supported options, see the parameters accept in init documentation of azure-core -
You can't import a
versionmodule anymore, use__version__instead -
Operations that used to return a
msrest.polling.LROPollernow returns aazure.core.polling.LROPollerand are prefixed withbegin_. -
Exceptions tree have been simplified and most exceptions are now
azure.core.exceptions.HttpResponseError(CloudErrorhas been removed). -
Most of the operation kwarg have changed. Some of the most noticeable:
rawhas been removed. Equivalent feature can be found usingcls, a callback that will give access to internal HTTP response for advanced user- For a complete set of supported options, see the parameters accept in Request documentation of azure-core
General new features
- Type annotations support using
typing. SDKs are mypy ready. - This client has now stable and official support for async. Check the
aionamespace of your package to find the async client. - This client now support natively tracing library like OpenCensus or OpenTelemetry. See this tracing quickstart for an overview.
0.1.1 (2019-05-13)
Bugfixes
- Remove incorrect "count_type1" parameter from client signature #4965
0.1.0 (2019-04-16)
- Initial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_mgmt_automation-1.1.0b5.tar.gz.
File metadata
- Download URL: azure_mgmt_automation-1.1.0b5.tar.gz
- Upload date:
- Size: 167.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87154f0f1b4f5680a2aae11055675ba25126872a4911cc9e235fe312b197d5df
|
|
| MD5 |
4f841cdf46f12104f003c2a68fa6159d
|
|
| BLAKE2b-256 |
2c85a3bc9abedfe8b1b84f42e1b9a447121155f926394ae0dcc055c4d4438ff1
|
File details
Details for the file azure_mgmt_automation-1.1.0b5-py3-none-any.whl.
File metadata
- Download URL: azure_mgmt_automation-1.1.0b5-py3-none-any.whl
- Upload date:
- Size: 173.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66f2f2924fdcdcbef816431c2931e8c272bed50a564b09fa1a584181d4db133d
|
|
| MD5 |
372c6b2e2aec00b67f49616b9e27c5dc
|
|
| BLAKE2b-256 |
fa62da898d5c230624d8132bb9139ec899575a887fc9aec6bdf090f8a9296b1b
|