Get-AzMigrateRunAsAccount
Method to get run as account.
Syntax
Get-AzMigrateRunAsAccount
-ResourceGroupName <String>
-SiteName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzMigrateRunAsAccount
-ResourceGroupName <String>
-SiteName <String>
-AccountName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Method to get run as account.
Examples
Example 1: List (Default)
Get-AzMigrateRunAsAccount -SubscriptionId xxx-xxx-xxx -ResourceGroupName BugBashAVSVMware -SiteName BBVMwareAVScbbcsite
Name Type
---- ----
aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e Microsoft.OffAzure/VMwareSites/runasaccounts
List all run as accounts in a site.
Example 2: Get
Get-AzMigrateRunAsAccount -SubscriptionId xxx-xxx-xxx -ResourceGroupName BugBashAVSVMware -SiteName BBVMwareAVScbbcsite -AccountName aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Name Type
---- ----
aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e Microsoft.OffAzure/VMwareSites/runasaccounts
Get Run as account by name.
Parameters
-AccountName
Run as account ARM name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SiteName
Site name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure PowerShell