1. Registry
  2. Packages
  3. Azure Native
  4. API Docs
  5. security
  6. getStandardAssignment
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.26.0
published on Thursday, Aug 13, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.26.0
published on Thursday, Aug 13, 2026 by Pulumi

    This operation retrieves a single standard assignment, given its name and the scope it was created at.

    Uses Azure REST API version 2024-08-01.

    Using getStandardAssignment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getStandardAssignment(args: GetStandardAssignmentArgs, opts?: InvokeOptions): Promise<GetStandardAssignmentResult>
    function getStandardAssignmentOutput(args: GetStandardAssignmentOutputArgs, opts?: InvokeOutputOptions): Output<GetStandardAssignmentResult>
    def get_standard_assignment(resource_id: Optional[str] = None,
                                standard_assignment_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetStandardAssignmentResult
    def get_standard_assignment_output(resource_id: pulumi.Input[Optional[str]] = None,
                                standard_assignment_name: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetStandardAssignmentResult]
    func LookupStandardAssignment(ctx *Context, args *LookupStandardAssignmentArgs, opts ...InvokeOption) (*LookupStandardAssignmentResult, error)
    func LookupStandardAssignmentOutput(ctx *Context, args *LookupStandardAssignmentOutputArgs, opts ...InvokeOption) LookupStandardAssignmentResultOutput

    > Note: This function is named LookupStandardAssignment in the Go SDK.

    public static class GetStandardAssignment 
    {
        public static Task<GetStandardAssignmentResult> InvokeAsync(GetStandardAssignmentArgs args, InvokeOptions? opts = null)
        public static Output<GetStandardAssignmentResult> Invoke(GetStandardAssignmentInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStandardAssignmentResult> Invoke(GetStandardAssignmentInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStandardAssignmentResult> getStandardAssignment(GetStandardAssignmentArgs args, InvokeOptions options)
    public static Output<GetStandardAssignmentResult> getStandardAssignment(GetStandardAssignmentArgs args, InvokeOptions options)
    public static Output<GetStandardAssignmentResult> getStandardAssignment(GetStandardAssignmentArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: azure-native:security:getStandardAssignment
      arguments:
        # arguments dictionary
    data "azure-native_security_get_standard_assignment" "name" {
        # arguments
    }

    The following arguments are supported:

    ResourceId string
    The fully qualified Azure Resource manager identifier of the resource.
    StandardAssignmentName string
    The standard assignments assignment key - unique key for the standard assignment
    ResourceId string
    The fully qualified Azure Resource manager identifier of the resource.
    StandardAssignmentName string
    The standard assignments assignment key - unique key for the standard assignment
    resource_id string
    The fully qualified Azure Resource manager identifier of the resource.
    standard_assignment_name string
    The standard assignments assignment key - unique key for the standard assignment
    resourceId String
    The fully qualified Azure Resource manager identifier of the resource.
    standardAssignmentName String
    The standard assignments assignment key - unique key for the standard assignment
    resourceId string
    The fully qualified Azure Resource manager identifier of the resource.
    standardAssignmentName string
    The standard assignments assignment key - unique key for the standard assignment
    resource_id str
    The fully qualified Azure Resource manager identifier of the resource.
    standard_assignment_name str
    The standard assignments assignment key - unique key for the standard assignment
    resourceId String
    The fully qualified Azure Resource manager identifier of the resource.
    standardAssignmentName String
    The standard assignments assignment key - unique key for the standard assignment

    getStandardAssignment Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.Security.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AssignedStandard Pulumi.AzureNative.Security.Outputs.AssignedStandardItemResponse
    Standard item with key as applied to this standard assignment over the given scope
    AttestationData Pulumi.AzureNative.Security.Outputs.StandardAssignmentPropertiesAttestationDataResponse
    Additional data about assignment that has Attest effect
    Description string
    Description of the standardAssignment
    DisplayName string
    Display name of the standardAssignment
    Effect string
    Expected effect of this assignment (Audit/Exempt/Attest)
    ExcludedScopes List<string>
    Excluded scopes, filter out the descendants of the scope (on management scopes)
    ExemptionData Pulumi.AzureNative.Security.Outputs.StandardAssignmentPropertiesExemptionDataResponse
    Additional data about assignment that has Exempt effect
    ExpiresOn string
    Expiration date of this assignment as a full ISO date
    Metadata Pulumi.AzureNative.Security.Outputs.StandardAssignmentMetadataResponse
    The standard assignment metadata.
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AssignedStandard AssignedStandardItemResponse
    Standard item with key as applied to this standard assignment over the given scope
    AttestationData StandardAssignmentPropertiesAttestationDataResponse
    Additional data about assignment that has Attest effect
    Description string
    Description of the standardAssignment
    DisplayName string
    Display name of the standardAssignment
    Effect string
    Expected effect of this assignment (Audit/Exempt/Attest)
    ExcludedScopes []string
    Excluded scopes, filter out the descendants of the scope (on management scopes)
    ExemptionData StandardAssignmentPropertiesExemptionDataResponse
    Additional data about assignment that has Exempt effect
    ExpiresOn string
    Expiration date of this assignment as a full ISO date
    Metadata StandardAssignmentMetadataResponse
    The standard assignment metadata.
    azure_api_version string
    The Azure API version of the resource.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name string
    The name of the resource
    system_data object
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    assigned_standard object
    Standard item with key as applied to this standard assignment over the given scope
    attestation_data object
    Additional data about assignment that has Attest effect
    description string
    Description of the standardAssignment
    display_name string
    Display name of the standardAssignment
    effect string
    Expected effect of this assignment (Audit/Exempt/Attest)
    excluded_scopes list(string)
    Excluded scopes, filter out the descendants of the scope (on management scopes)
    exemption_data object
    Additional data about assignment that has Exempt effect
    expires_on string
    Expiration date of this assignment as a full ISO date
    metadata object
    The standard assignment metadata.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    assignedStandard AssignedStandardItemResponse
    Standard item with key as applied to this standard assignment over the given scope
    attestationData StandardAssignmentPropertiesAttestationDataResponse
    Additional data about assignment that has Attest effect
    description String
    Description of the standardAssignment
    displayName String
    Display name of the standardAssignment
    effect String
    Expected effect of this assignment (Audit/Exempt/Attest)
    excludedScopes List<String>
    Excluded scopes, filter out the descendants of the scope (on management scopes)
    exemptionData StandardAssignmentPropertiesExemptionDataResponse
    Additional data about assignment that has Exempt effect
    expiresOn String
    Expiration date of this assignment as a full ISO date
    metadata StandardAssignmentMetadataResponse
    The standard assignment metadata.
    azureApiVersion string
    The Azure API version of the resource.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    assignedStandard AssignedStandardItemResponse
    Standard item with key as applied to this standard assignment over the given scope
    attestationData StandardAssignmentPropertiesAttestationDataResponse
    Additional data about assignment that has Attest effect
    description string
    Description of the standardAssignment
    displayName string
    Display name of the standardAssignment
    effect string
    Expected effect of this assignment (Audit/Exempt/Attest)
    excludedScopes string[]
    Excluded scopes, filter out the descendants of the scope (on management scopes)
    exemptionData StandardAssignmentPropertiesExemptionDataResponse
    Additional data about assignment that has Exempt effect
    expiresOn string
    Expiration date of this assignment as a full ISO date
    metadata StandardAssignmentMetadataResponse
    The standard assignment metadata.
    azure_api_version str
    The Azure API version of the resource.
    id str
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    assigned_standard AssignedStandardItemResponse
    Standard item with key as applied to this standard assignment over the given scope
    attestation_data StandardAssignmentPropertiesAttestationDataResponse
    Additional data about assignment that has Attest effect
    description str
    Description of the standardAssignment
    display_name str
    Display name of the standardAssignment
    effect str
    Expected effect of this assignment (Audit/Exempt/Attest)
    excluded_scopes Sequence[str]
    Excluded scopes, filter out the descendants of the scope (on management scopes)
    exemption_data StandardAssignmentPropertiesExemptionDataResponse
    Additional data about assignment that has Exempt effect
    expires_on str
    Expiration date of this assignment as a full ISO date
    metadata StandardAssignmentMetadataResponse
    The standard assignment metadata.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    assignedStandard Property Map
    Standard item with key as applied to this standard assignment over the given scope
    attestationData Property Map
    Additional data about assignment that has Attest effect
    description String
    Description of the standardAssignment
    displayName String
    Display name of the standardAssignment
    effect String
    Expected effect of this assignment (Audit/Exempt/Attest)
    excludedScopes List<String>
    Excluded scopes, filter out the descendants of the scope (on management scopes)
    exemptionData Property Map
    Additional data about assignment that has Exempt effect
    expiresOn String
    Expiration date of this assignment as a full ISO date
    metadata Property Map
    The standard assignment metadata.

    Supporting Types

    AssignedAssessmentItemResponse

    AssessmentKey string
    Unique key to a security assessment object
    AssessmentKey string
    Unique key to a security assessment object
    assessment_key string
    Unique key to a security assessment object
    assessmentKey String
    Unique key to a security assessment object
    assessmentKey string
    Unique key to a security assessment object
    assessment_key str
    Unique key to a security assessment object
    assessmentKey String
    Unique key to a security assessment object

    AssignedStandardItemResponse

    Id string
    Full resourceId of the Microsoft.Security/standard object
    Id string
    Full resourceId of the Microsoft.Security/standard object
    id string
    Full resourceId of the Microsoft.Security/standard object
    id String
    Full resourceId of the Microsoft.Security/standard object
    id string
    Full resourceId of the Microsoft.Security/standard object
    id str
    Full resourceId of the Microsoft.Security/standard object
    id String
    Full resourceId of the Microsoft.Security/standard object

    AttestationEvidenceResponse

    Description string
    The description of the evidence
    SourceUrl string
    The source url of the evidence
    Description string
    The description of the evidence
    SourceUrl string
    The source url of the evidence
    description string
    The description of the evidence
    source_url string
    The source url of the evidence
    description String
    The description of the evidence
    sourceUrl String
    The source url of the evidence
    description string
    The description of the evidence
    sourceUrl string
    The source url of the evidence
    description str
    The description of the evidence
    source_url str
    The source url of the evidence
    description String
    The description of the evidence
    sourceUrl String
    The source url of the evidence

    StandardAssignmentMetadataResponse

    CreatedBy string
    Standard assignment Created by object id (GUID)
    CreatedOn string
    Standard assignment creation date
    LastUpdatedBy string
    Standard assignment last updated by object id (GUID)
    LastUpdatedOn string
    Standard assignment last update date
    CreatedBy string
    Standard assignment Created by object id (GUID)
    CreatedOn string
    Standard assignment creation date
    LastUpdatedBy string
    Standard assignment last updated by object id (GUID)
    LastUpdatedOn string
    Standard assignment last update date
    created_by string
    Standard assignment Created by object id (GUID)
    created_on string
    Standard assignment creation date
    last_updated_by string
    Standard assignment last updated by object id (GUID)
    last_updated_on string
    Standard assignment last update date
    createdBy String
    Standard assignment Created by object id (GUID)
    createdOn String
    Standard assignment creation date
    lastUpdatedBy String
    Standard assignment last updated by object id (GUID)
    lastUpdatedOn String
    Standard assignment last update date
    createdBy string
    Standard assignment Created by object id (GUID)
    createdOn string
    Standard assignment creation date
    lastUpdatedBy string
    Standard assignment last updated by object id (GUID)
    lastUpdatedOn string
    Standard assignment last update date
    created_by str
    Standard assignment Created by object id (GUID)
    created_on str
    Standard assignment creation date
    last_updated_by str
    Standard assignment last updated by object id (GUID)
    last_updated_on str
    Standard assignment last update date
    createdBy String
    Standard assignment Created by object id (GUID)
    createdOn String
    Standard assignment creation date
    lastUpdatedBy String
    Standard assignment last updated by object id (GUID)
    lastUpdatedOn String
    Standard assignment last update date

    StandardAssignmentPropertiesAttestationDataResponse

    ComplianceDate string
    Attestation compliance date
    AssignedAssessment Pulumi.AzureNative.Security.Inputs.AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    ComplianceState string
    Attest category of this assignment
    Evidence List<Pulumi.AzureNative.Security.Inputs.AttestationEvidenceResponse>
    Array of links to attestation evidence
    ComplianceDate string
    Attestation compliance date
    AssignedAssessment AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    ComplianceState string
    Attest category of this assignment
    Evidence []AttestationEvidenceResponse
    Array of links to attestation evidence
    compliance_date string
    Attestation compliance date
    assigned_assessment object
    Component item with key as applied to this standard assignment over the given scope
    compliance_state string
    Attest category of this assignment
    evidence list(object)
    Array of links to attestation evidence
    complianceDate String
    Attestation compliance date
    assignedAssessment AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    complianceState String
    Attest category of this assignment
    evidence List<AttestationEvidenceResponse>
    Array of links to attestation evidence
    complianceDate string
    Attestation compliance date
    assignedAssessment AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    complianceState string
    Attest category of this assignment
    evidence AttestationEvidenceResponse[]
    Array of links to attestation evidence
    compliance_date str
    Attestation compliance date
    assigned_assessment AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    compliance_state str
    Attest category of this assignment
    evidence Sequence[AttestationEvidenceResponse]
    Array of links to attestation evidence
    complianceDate String
    Attestation compliance date
    assignedAssessment Property Map
    Component item with key as applied to this standard assignment over the given scope
    complianceState String
    Attest category of this assignment
    evidence List<Property Map>
    Array of links to attestation evidence

    StandardAssignmentPropertiesExemptionDataResponse

    AssignedAssessment Pulumi.AzureNative.Security.Inputs.AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    ExemptionCategory string
    Exemption category of this assignment
    AssignedAssessment AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    ExemptionCategory string
    Exemption category of this assignment
    assigned_assessment object
    Component item with key as applied to this standard assignment over the given scope
    exemption_category string
    Exemption category of this assignment
    assignedAssessment AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    exemptionCategory String
    Exemption category of this assignment
    assignedAssessment AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    exemptionCategory string
    Exemption category of this assignment
    assigned_assessment AssignedAssessmentItemResponse
    Component item with key as applied to this standard assignment over the given scope
    exemption_category str
    Exemption category of this assignment
    assignedAssessment Property Map
    Component item with key as applied to this standard assignment over the given scope
    exemptionCategory String
    Exemption category of this assignment

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    created_at string
    The timestamp of resource creation (UTC).
    created_by string
    The identity that created the resource.
    created_by_type string
    The type of identity that created the resource.
    last_modified_at string
    The timestamp of resource last modification (UTC)
    last_modified_by string
    The identity that last modified the resource.
    last_modified_by_type string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.26.0
    published on Thursday, Aug 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial