SubscriptionPolicyAssignment is the Schema for the SubscriptionPolicyAssignments API. Manages a Subscription Policy Assignment.
Type
CRD
Group
authorization.azure.upbound.io
Version
v1beta1
apiVersion: authorization.azure.upbound.io/v1beta1
kind: SubscriptionPolicyAssignment
SubscriptionPolicyAssignmentSpec defines the desired state of SubscriptionPolicyAssignment
No description provided.
An identity block as defined below.
A list of User Managed Identity IDs which should be assigned to the Policy Definition.
One or more non_compliance_message blocks as defined below.
Specifies a list of Resource Scopes (for example a Subscription, or a Resource Group) within this Management Group which are excluded from this Policy.
Reference to a PolicyDefinition in authorization to populate policyDefinitionId.
Policies for referencing.
Selector for a PolicyDefinition in authorization to populate policyDefinitionId.
Policies for selection.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
SubscriptionPolicyAssignmentStatus defines the observed state of SubscriptionPolicyAssignment.
No description provided.
An identity block as defined below.
A list of User Managed Identity IDs which should be assigned to the Policy Definition.
One or more non_compliance_message blocks as defined below.
Specifies a list of Resource Scopes (for example a Subscription, or a Resource Group) within this Management Group which are excluded from this Policy.
Conditions of the resource.
example
apiVersion: authorization.azure.upbound.io/v1beta1
kind: SubscriptionPolicyAssignment
metadata:
annotations:
meta.upbound.io/example-id: authorization/v1beta1/subscriptionpolicyexemption
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
identity:
- type: SystemAssigned
location: westus
policyDefinitionIdSelector:
matchLabels:
testing.upbound.io/example-name: example
subscriptionId: ${data.azurerm_client_config.current.subscription_resource_id}
example
apiVersion: authorization.azure.upbound.io/v1beta1
kind: SubscriptionPolicyAssignment
metadata:
annotations:
meta.upbound.io/example-id: authorization/v1beta1/subscriptionpolicyassignment
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
policyDefinitionIdSelector:
matchLabels:
testing.upbound.io/example-name: example
subscriptionId: ${data.azurerm_client_config.current.subscription_resource_id}
policy-example
apiVersion: authorization.azure.upbound.io/v1beta1
kind: SubscriptionPolicyAssignment
metadata:
annotations:
meta.upbound.io/example-id: policyinsights/v1beta1/subscriptionpolicyremediation
labels:
testing.upbound.io/example-name: example
name: policy-example
spec:
forProvider:
policyDefinitionIdSelector:
matchLabels:
testing.upbound.io/example-name: example
subscriptionId: /subscriptions/038f2b7c-3265-43b8-8624-c9ad5da610a8
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.