Share via


PolicyClient Class

To use in policy authoring you can create a variable at a scope. Variables created at a scope can be shared between multiple policy definitions.

Constructor

PolicyClient(credential: TokenCredential, subscription_id: str, base_url: str | None = None, **kwargs: Any)

Parameters

Name Description
credential
Required

Credential needed for the client to connect to Azure. Required.

subscription_id
Required
str

The ID of the target subscription. Required.

base_url
str

Service URL. Default value is None.

Default value: None

Keyword-Only Parameters

Name Description
api_version
str

Api Version. Default value is "2022-08-01-preview". Note that overriding this default value may result in unsupported behavior.

Variables

Name Description
variables

VariablesOperations operations

variable_values

VariableValuesOperations operations

Methods

close

close

close() -> None