Msrestazure

Latest version: v0.6.4.post1

Safety actively analyzes 629143 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 7

0.4.11

Features

- Add cloud definitions for public Azure, German Azure, China Azure and Azure Gov
- Add get_cloud_from_metadata_endpoint to automatically create a Cloud object from an ARM endpoint
- Add `cloud_environment` to all Credentials objects (except AdalAuthentication)

Note

- This deprecates "china=True", to be replaced by "cloud_environment=AZURE_CHINA_CLOUD"

Example:

python
from msrestazure.azure_cloud import AZURE_CHINA_CLOUD
from msrestazure.azure_active_directory import UserPassCredentials

credentials = UserPassCredentials(
login,
password,
cloud_environment=AZURE_CHINA_CLOUD
)


`base_url` of SDK client can be pointed to "cloud_environment.endpoints.resource_manager" for basic scenario:

Example:

python
from msrestazure.azure_cloud import AZURE_CHINA_CLOUD
from msrestazure.azure_active_directory import UserPassCredentials
from azure.mgmt.resource import ResourceManagementClient

credentials = UserPassCredentials(
login,
password,
cloud_environment=AZURE_CHINA_CLOUD
)
client = ResourceManagementClient(
credentials,
subscription_id,
base_url=AZURE_CHINA_CLOUD.endpoints.resource_manager
)


Azure Stack connection can be done:

python
from msrestazure.azure_cloud import get_cloud_from_metadata_endpoint
from msrestazure.azure_active_directory import UserPassCredentials
from azure.mgmt.resource import ResourceManagementClient

mystack_cloud = get_cloud_from_metadata_endpoint("https://myazurestack-arm-endpoint.com")
credentials = UserPassCredentials(
login,
password,
cloud_environment=mystack_cloud
)
client = ResourceManagementClient(
credentials,
subscription_id,
base_url=mystack_cloud.endpoints.resource_manager
)

0.4.10

Bugfixes

- Accept PATCH/201 as LRO valid state
- Close token session on exit (ServicePrincipal and UserPassword credentials)

0.4.9

Features

- Add proxies parameters to ServicePrincipal and UserPassword credentials class 29
- Add automatic Azure provider registration if needed (requires msrest 0.4.10) 28

Thank you to likel for his contribution

0.4.8

**Bugfixes**

- Fix LRO if first call never returns 200, but ends on 201 (26)
- FiX LRO AttributeError if timeout is short (21)

**Features**

- Expose a "status()" method in AzureOperationPoller (18)

0.4.7

**Bugfixes**
- Adding `accept_language` and `generate_client_request_id` default values

0.4.6

**Bugfixes**

Refactor Long Running Operation algorithm.
- There is no breaking changes, however you might need to record again your offline HTTP records
if you use unittests with VCRpy.
- Fix a couple of latent bugs

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.