1. Packages
  2. Azure Native
  3. API Docs
  4. authorization
  5. getManagementLockAtSubscriptionLevel
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 v1.103.0 (Older version)
published on Monday, Mar 9, 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 v1.103.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Gets a management lock at the subscription level. API Version: 2017-04-01.

    Using getManagementLockAtSubscriptionLevel

    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 getManagementLockAtSubscriptionLevel(args: GetManagementLockAtSubscriptionLevelArgs, opts?: InvokeOptions): Promise<GetManagementLockAtSubscriptionLevelResult>
    function getManagementLockAtSubscriptionLevelOutput(args: GetManagementLockAtSubscriptionLevelOutputArgs, opts?: InvokeOptions): Output<GetManagementLockAtSubscriptionLevelResult>
    def get_management_lock_at_subscription_level(lock_name: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetManagementLockAtSubscriptionLevelResult
    def get_management_lock_at_subscription_level_output(lock_name: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetManagementLockAtSubscriptionLevelResult]
    func LookupManagementLockAtSubscriptionLevel(ctx *Context, args *LookupManagementLockAtSubscriptionLevelArgs, opts ...InvokeOption) (*LookupManagementLockAtSubscriptionLevelResult, error)
    func LookupManagementLockAtSubscriptionLevelOutput(ctx *Context, args *LookupManagementLockAtSubscriptionLevelOutputArgs, opts ...InvokeOption) LookupManagementLockAtSubscriptionLevelResultOutput

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

    public static class GetManagementLockAtSubscriptionLevel 
    {
        public static Task<GetManagementLockAtSubscriptionLevelResult> InvokeAsync(GetManagementLockAtSubscriptionLevelArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementLockAtSubscriptionLevelResult> Invoke(GetManagementLockAtSubscriptionLevelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementLockAtSubscriptionLevelResult> getManagementLockAtSubscriptionLevel(GetManagementLockAtSubscriptionLevelArgs args, InvokeOptions options)
    public static Output<GetManagementLockAtSubscriptionLevelResult> getManagementLockAtSubscriptionLevel(GetManagementLockAtSubscriptionLevelArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:authorization:getManagementLockAtSubscriptionLevel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LockName string
    The name of the lock to get.
    LockName string
    The name of the lock to get.
    lockName String
    The name of the lock to get.
    lockName string
    The name of the lock to get.
    lock_name str
    The name of the lock to get.
    lockName String
    The name of the lock to get.

    getManagementLockAtSubscriptionLevel Result

    The following output properties are available:

    Id string
    The resource ID of the lock.
    Level string
    The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.
    Name string
    The name of the lock.
    Type string
    The resource type of the lock - Microsoft.Authorization/locks.
    Notes string
    Notes about the lock. Maximum of 512 characters.
    Owners List<Pulumi.AzureNative.Authorization.Outputs.ManagementLockOwnerResponse>
    The owners of the lock.
    Id string
    The resource ID of the lock.
    Level string
    The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.
    Name string
    The name of the lock.
    Type string
    The resource type of the lock - Microsoft.Authorization/locks.
    Notes string
    Notes about the lock. Maximum of 512 characters.
    Owners []ManagementLockOwnerResponse
    The owners of the lock.
    id String
    The resource ID of the lock.
    level String
    The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.
    name String
    The name of the lock.
    type String
    The resource type of the lock - Microsoft.Authorization/locks.
    notes String
    Notes about the lock. Maximum of 512 characters.
    owners List<ManagementLockOwnerResponse>
    The owners of the lock.
    id string
    The resource ID of the lock.
    level string
    The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.
    name string
    The name of the lock.
    type string
    The resource type of the lock - Microsoft.Authorization/locks.
    notes string
    Notes about the lock. Maximum of 512 characters.
    owners ManagementLockOwnerResponse[]
    The owners of the lock.
    id str
    The resource ID of the lock.
    level str
    The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.
    name str
    The name of the lock.
    type str
    The resource type of the lock - Microsoft.Authorization/locks.
    notes str
    Notes about the lock. Maximum of 512 characters.
    owners Sequence[ManagementLockOwnerResponse]
    The owners of the lock.
    id String
    The resource ID of the lock.
    level String
    The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.
    name String
    The name of the lock.
    type String
    The resource type of the lock - Microsoft.Authorization/locks.
    notes String
    Notes about the lock. Maximum of 512 characters.
    owners List<Property Map>
    The owners of the lock.

    Supporting Types

    ManagementLockOwnerResponse

    ApplicationId string
    The application ID of the lock owner.
    ApplicationId string
    The application ID of the lock owner.
    applicationId String
    The application ID of the lock owner.
    applicationId string
    The application ID of the lock owner.
    application_id str
    The application ID of the lock owner.
    applicationId String
    The application ID of the lock owner.

    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 v1.103.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.