Microsoft Azure Azure Stack HCI Management Client Library for Python
Project description
Microsoft Azure SDK for Python
This is the Microsoft Azure Azure Stack HCI Management Client Library. This package has been tested with Python 3.7+. 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.7+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-azurestackhci
pip install azure-identity
Authentication
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
AZURE_CLIENT_ID
for Azure client ID.AZURE_TENANT_ID
for Azure tenant ID.AZURE_CLIENT_SECRET
for 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.azurestackhci import AzureStackHCIClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = AzureStackHCIClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at:
- Search Azure Stack HCI Management 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
8.0.0b3 (2023-10-23)
Features Added
- Added operation GuestAgentsOperations.list
- Added operation HybridIdentityMetadataOperations.list
- Added operation group GalleryImagesOperations
- Added operation group LogicalNetworksOperations
- Added operation group MarketplaceGalleryImagesOperations
- Added operation group NetworkInterfacesOperations
- Added operation group StorageContainersOperations
- Added operation group VirtualHardDisksOperations
- Added operation group VirtualMachineInstancesOperations
- Model HardwareProfileUpdate has a new parameter memory_mb
- Model HttpProxyConfiguration has a new parameter http_proxy
- Model HttpProxyConfiguration has a new parameter no_proxy
- Model HttpProxyConfiguration has a new parameter trusted_ca
- Model IPPool has a new parameter name
- Model ProxyResource has a new parameter system_data
- Model Resource has a new parameter system_data
- Model StorageProfileUpdateDataDisksItem has a new parameter id
- Model TrackedResource has a new parameter system_data
Breaking Changes
- Model GuestAgent no longer has parameter http_proxy_config
- Model HardwareProfileUpdate no longer has parameter memory_gb
- Model StorageProfileUpdateDataDisksItem no longer has parameter name
- Operation GuestAgentOperations.begin_create has a new required parameter resource_uri
- Operation GuestAgentOperations.begin_create no longer has parameter name
- Operation GuestAgentOperations.begin_create no longer has parameter resource_group_name
- Operation GuestAgentOperations.begin_create no longer has parameter virtual_machine_name
- Operation GuestAgentOperations.begin_delete has a new required parameter resource_uri
- Operation GuestAgentOperations.begin_delete no longer has parameter name
- Operation GuestAgentOperations.begin_delete no longer has parameter resource_group_name
- Operation GuestAgentOperations.begin_delete no longer has parameter virtual_machine_name
- Operation GuestAgentOperations.get has a new required parameter resource_uri
- Operation GuestAgentOperations.get no longer has parameter name
- Operation GuestAgentOperations.get no longer has parameter resource_group_name
- Operation GuestAgentOperations.get no longer has parameter virtual_machine_name
- Operation HybridIdentityMetadataOperations.get has a new required parameter resource_uri
- Operation HybridIdentityMetadataOperations.get no longer has parameter metadata_name
- Operation HybridIdentityMetadataOperations.get no longer has parameter resource_group_name
- Operation HybridIdentityMetadataOperations.get no longer has parameter virtual_machine_name
- Removed operation GuestAgentsOperations.list_by_virtual_machines
- Removed operation HybridIdentityMetadataOperations.create
- Removed operation HybridIdentityMetadataOperations.delete
- Removed operation HybridIdentityMetadataOperations.list_by_virtual_machines
- Removed operation group ArcSettingsOperations
- Removed operation group ClustersOperations
- Removed operation group ExtensionsOperations
- Removed operation group GalleryimagesOperations
- Removed operation group MachineExtensionsOperations
- Removed operation group MarketplacegalleryimagesOperations
- Removed operation group NetworkinterfacesOperations
- Removed operation group StoragecontainersOperations
- Removed operation group VirtualharddisksOperations
- Removed operation group VirtualmachinesOperations
- Removed operation group VirtualnetworksOperations
8.0.0b2 (2022-12-15)
Features Added
- Added operation ClustersOperations.delete
- Added operation group GalleryimagesOperations
- Added operation group GuestAgentOperations
- Added operation group GuestAgentsOperations
- Added operation group HybridIdentityMetadataOperations
- Added operation group MachineExtensionsOperations
- Added operation group MarketplacegalleryimagesOperations
- Added operation group NetworkinterfacesOperations
- Added operation group StoragecontainersOperations
- Added operation group VirtualharddisksOperations
- Added operation group VirtualmachinesOperations
- Added operation group VirtualnetworksOperations
- Model ArcSetting has a new parameter created_at
- Model ArcSetting has a new parameter created_by
- Model ArcSetting has a new parameter created_by_type
- Model ArcSetting has a new parameter last_modified_at
- Model ArcSetting has a new parameter last_modified_by
- Model ArcSetting has a new parameter last_modified_by_type
- Model Cluster has a new parameter created_at
- Model Cluster has a new parameter created_by
- Model Cluster has a new parameter created_by_type
- Model Cluster has a new parameter last_modified_at
- Model Cluster has a new parameter last_modified_by
- Model Cluster has a new parameter last_modified_by_type
- Model Extension has a new parameter created_at
- Model Extension has a new parameter created_by
- Model Extension has a new parameter created_by_type
- Model Extension has a new parameter last_modified_at
- Model Extension has a new parameter last_modified_by
- Model Extension has a new parameter last_modified_by_type
Breaking Changes
- Model ArcSetting no longer has parameter arc_application_client_id
- Model ArcSetting no longer has parameter arc_application_object_id
- Model ArcSetting no longer has parameter arc_application_tenant_id
- Model ArcSetting no longer has parameter arc_service_principal_object_id
- Model ArcSetting no longer has parameter connectivity_properties
- Model ArcSetting no longer has parameter system_data
- Model Cluster no longer has parameter aad_application_object_id
- Model Cluster no longer has parameter aad_service_principal_object_id
- Model Cluster no longer has parameter principal_id
- Model Cluster no longer has parameter service_endpoint
- Model Cluster no longer has parameter software_assurance_properties
- Model Cluster no longer has parameter system_data
- Model Cluster no longer has parameter tenant_id
- Model Cluster no longer has parameter type_identity_type
- Model Cluster no longer has parameter user_assigned_identities
- Model ClusterNode no longer has parameter node_type
- Model ClusterNode no longer has parameter os_display_version
- Model ClusterPatch no longer has parameter principal_id
- Model ClusterPatch no longer has parameter tenant_id
- Model ClusterPatch no longer has parameter type
- Model ClusterPatch no longer has parameter user_assigned_identities
- Model Extension no longer has parameter system_data
- Model ProxyResource no longer has parameter system_data
- Model Resource no longer has parameter system_data
- Model TrackedResource no longer has parameter system_data
- Removed operation ArcSettingsOperations.begin_create_identity
- Removed operation ArcSettingsOperations.generate_password
- Removed operation ArcSettingsOperations.update
- Removed operation ClustersOperations.begin_create_identity
- Removed operation ClustersOperations.begin_delete
- Removed operation ClustersOperations.begin_extend_software_assurance_benefit
- Removed operation ClustersOperations.begin_upload_certificate
- Removed operation group OffersOperations
- Removed operation group PublishersOperations
- Removed operation group SkusOperations
- Removed operation group UpdateRunsOperations
- Removed operation group UpdateSummariesOperations
- Removed operation group UpdatesOperations
8.0.0b1 (2022-11-25)
Features Added
- Added operation ClustersOperations.begin_extend_software_assurance_benefit
- Added operation group OffersOperations
- Added operation group PublishersOperations
- Added operation group SkusOperations
- Added operation group UpdateRunsOperations
- Added operation group UpdateSummariesOperations
- Added operation group UpdatesOperations
- Model ArcSetting has a new parameter system_data
- Model Cluster has a new parameter principal_id
- Model Cluster has a new parameter software_assurance_properties
- Model Cluster has a new parameter system_data
- Model Cluster has a new parameter tenant_id
- Model Cluster has a new parameter type_identity_type
- Model Cluster has a new parameter user_assigned_identities
- Model ClusterNode has a new parameter node_type
- Model ClusterNode has a new parameter os_display_version
- Model ClusterPatch has a new parameter principal_id
- Model ClusterPatch has a new parameter tenant_id
- Model ClusterPatch has a new parameter type
- Model ClusterPatch has a new parameter user_assigned_identities
- Model Extension has a new parameter system_data
- Model ProxyResource has a new parameter system_data
- Model Resource has a new parameter system_data
- Model TrackedResource has a new parameter system_data
Breaking Changes
- Model ArcSetting no longer has parameter created_at
- Model ArcSetting no longer has parameter created_by
- Model ArcSetting no longer has parameter created_by_type
- Model ArcSetting no longer has parameter last_modified_at
- Model ArcSetting no longer has parameter last_modified_by
- Model ArcSetting no longer has parameter last_modified_by_type
- Model Cluster no longer has parameter created_at
- Model Cluster no longer has parameter created_by
- Model Cluster no longer has parameter created_by_type
- Model Cluster no longer has parameter last_modified_at
- Model Cluster no longer has parameter last_modified_by
- Model Cluster no longer has parameter last_modified_by_type
- Model Extension no longer has parameter created_at
- Model Extension no longer has parameter created_by
- Model Extension no longer has parameter created_by_type
- Model Extension no longer has parameter last_modified_at
- Model Extension no longer has parameter last_modified_by
- Model Extension no longer has parameter last_modified_by_type
7.0.0 (2022-05-26)
Features
- Added operation ArcSettingsOperations.begin_create_identity
- Added operation ArcSettingsOperations.generate_password
- Added operation ArcSettingsOperations.update
- Added operation ClustersOperations.begin_create_identity
- Added operation ClustersOperations.begin_delete
- Added operation ClustersOperations.begin_upload_certificate
- Model ArcSetting has a new parameter arc_application_client_id
- Model ArcSetting has a new parameter arc_application_object_id
- Model ArcSetting has a new parameter arc_application_tenant_id
- Model ArcSetting has a new parameter arc_service_principal_object_id
- Model ArcSetting has a new parameter connectivity_properties
- Model Cluster has a new parameter aad_application_object_id
- Model Cluster has a new parameter aad_service_principal_object_id
- Model Cluster has a new parameter service_endpoint
Breaking changes
- Removed operation ClustersOperations.delete
6.1.0 (2022-04-08)
Features
- Model Cluster has a new parameter desired_properties
- Model ClusterNode has a new parameter windows_server_subscription
- Model ClusterPatch has a new parameter aad_client_id
- Model ClusterPatch has a new parameter aad_tenant_id
- Model ClusterPatch has a new parameter desired_properties
- Model ClusterReportedProperties has a new parameter diagnostic_level
- Model ClusterReportedProperties has a new parameter imds_attestation
6.1.0b1 (2021-06-29)
Features
- Model Cluster has a new parameter cloud_management_endpoint
- Added operation group ArcSettingsOperations
- Added operation group ExtensionsOperations
6.0.0 (2021-05-20)
- GA release
6.0.0b1 (2020-12-08)
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.credentials
ormsrestazure.azure_active_directory
instances are no longer supported, use theazure-identity
classes instead: https://pypi-hypernode.com/project/azure-identity/credentials
parameter has been renamedcredential
-
The
config
attribute 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
version
module anymore, use__version__
instead -
Operations that used to return a
msrest.polling.LROPoller
now returns aazure.core.polling.LROPoller
and are prefixed withbegin_
. -
Exceptions tree have been simplified and most exceptions are now
azure.core.exceptions.HttpResponseError
(CloudError
has been removed). -
Most of the operation kwarg have changed. Some of the most noticeable:
raw
has 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
aio
namespace 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.
1.0.0 (2020-10-14)
Features
- Model Cluster has a new parameter last_billing_timestamp
- Model Cluster has a new parameter registration_timestamp
- Model Cluster has a new parameter last_sync_timestamp
- Added operation ClustersOperations.list_by_subscription
Breaking changes
- Removed operation ClustersOperations.list
1.0.0rc (2020-07-22)
- 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
File details
Details for the file azure-mgmt-azurestackhci-8.0.0b3.tar.gz
.
File metadata
- Download URL: azure-mgmt-azurestackhci-8.0.0b3.tar.gz
- Upload date:
- Size: 109.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77e15a55ecbd72197b739e0eb71332ddff8b5fa724f1008f1c7f82bd51d47870 |
|
MD5 | e0ec854c4762c5b71fbadb158ed248d1 |
|
BLAKE2b-256 | d2887b570af302677ec243f192ebf1257fc07969fb8df87464aee6da6844324b |
File details
Details for the file azure_mgmt_azurestackhci-8.0.0b3-py3-none-any.whl
.
File metadata
- Download URL: azure_mgmt_azurestackhci-8.0.0b3-py3-none-any.whl
- Upload date:
- Size: 148.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f2a464eac673f40ebeb086433c66e31a89f25ca7ec84dc55b63491efc3eec5 |
|
MD5 | 37b7ecab17e82d421959599cbf1618fc |
|
BLAKE2b-256 | e4dea12f01776e7e64387eae13f9b11dd22017151c3b3b1db2ec2dd908286d04 |