Invoke-LMAzureSubscriptionDiscovery
Syntax
Section titled “Syntax”__AllParameterSets
Section titled “__AllParameterSets”Invoke-LMAzureSubscriptionDiscovery [-ClientId] <string> [-SecretKey] <string> [-TenantId] <string> [[-IsChinaAccount] <string>] [<CommonParameters>]Description
Section titled “Description”The Invoke-LMAzureSubscriptionDiscovery function discovers available Azure subscriptions for a specified Azure tenant using provided credentials.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”#Discover Azure subscriptionsInvoke-LMAzureSubscriptionDiscovery -ClientId "client-id" -SecretKey "secret-key" -TenantId "tenant-id"Parameters
Section titled “Parameters”-ClientId
Section titled “-ClientId”The Azure Active Directory application client ID.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 0 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-IsChinaAccount
Section titled “-IsChinaAccount”Indicates if this is an Azure China account. Defaults to $false.
Type: System.StringDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 3 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SecretKey
Section titled “-SecretKey”The Azure Active Directory application secret key.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 1 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-TenantId
Section titled “-TenantId”The Azure Active Directory tenant ID.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 2 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.