Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Releases: Azure/msrestazure-for-python

v0.4.11

29 Jun 23:16

Choose a tag to compare

v0.4.11 Pre-release
Pre-release

2017-06-29 Version 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:

  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:

  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:

  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
  )

v0.4.10

27 Jun 18:57

Choose a tag to compare

v0.4.10 Pre-release
Pre-release

2017-06-27 Version 0.4.10

Bugfixes

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

v0.4.9

19 Jun 17:10

Choose a tag to compare

v0.4.9 Pre-release
Pre-release

2017-06-19 Version 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

v0.4.8

31 May 21:15

Choose a tag to compare

v0.4.8 Pre-release
Pre-release

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)

v0.4.7

23 Jan 22:14

Choose a tag to compare

v0.4.7 Pre-release
Pre-release

Bugfixes

  • Adding accept_language and generate_client_request_id default values

v0.4.6

14 Dec 00:37

Choose a tag to compare

v0.4.6 Pre-release
Pre-release

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

v0.4.5

30 Nov 19:25

Choose a tag to compare

v0.4.5 Pre-release
Pre-release

2016-11-30 Version 0.4.5

New features

  • Add AdalAuthentification class to wrap ADAL library (#8)