azure.mgmt.resource.policy.v2022_07_01_preview package

Submodules

Module contents

class azure.mgmt.resource.policy.v2022_07_01_preview.PolicyClient(credential: TokenCredential, subscription_id: str, base_url: str = 'https://management.azure.com', **kwargs: Any)[source]

Bases: object

To exempt your resources from policy evaluation and non-compliance state, you can create an exemption at a scope.

Variables:

policy_exemptions (azure.mgmt.resource.policy.v2022_07_01_preview.operations.PolicyExemptionsOperations) – PolicyExemptionsOperations operations

Parameters:
  • credential (TokenCredential) – Credential needed for the client to connect to Azure. Required.

  • subscription_id (str) – The ID of the target subscription. Required.

  • base_url (str) – Service URL. Default value is “https://management.azure.com”.

Keyword Arguments:

api_version (str) – Api Version. Default value is “2022-07-01-preview”. Note that overriding this default value may result in unsupported behavior.

close() None[source]