Add-AzureRemoteAppUser
Lägger till en användare i en Azure RemoteApp-samling.
Kommentar
De cmdletar som refereras i den här dokumentationen är till för att hantera äldre Azure-resurser som använder Service Management-API:er. Se Az PowerShell-modulen för cmdletar för att hantera Azure Resource Manager-resurser.
Syntax
Add-AzureRemoteAppUser
[-CollectionName] <String>
[-Type] <PrincipalProviderType>
[-UserUpn] <String[]>
[-Alias <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
Cmdleten Add-AzureRemoteAppUser lägger till en användare i en Azure RemoteApp-samling.
Exempel
Exempel 1: Lägga till en användare med ett Microsoft-konto
PS C:\> Add-AzureRemoteAppUser -CollectionName "Contoso" -UserType MicrosoftAccount -UserUpn "PattiFuller@contoso.com"
Det här kommandot lägger till Microsoft-kontot PattiFuller@contoso.com i samlingen contoso.
Exempel 2: Lägg till en användare med ett Microsoft Entra-konto
PS C:\> Add-AzureRemoteAppUser -CollectionName "Contoso" -UserType OrgId -UserUpn "PattiFuller@contoso.com"
Det här kommandot lägger till Microsoft Entra-kontot PattiFuller@contoso.com i samlingen med namnet Contoso.
Parametrar
-Alias
Anger ett publicerat programalias. Du kan endast använda den här parametern i publiceringsläge per app.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CollectionName
Anger namnet på Azure RemoteApp-samlingen.
Type: | String |
Aliases: | Name |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Profile
Anger den Azure-profil som den här cmdleten läser från. Om du inte anger någon profil läser den här cmdleten från den lokala standardprofilen.
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Type
Anger en användartyp. De godtagbara värdena för den här parametern är: OrgId eller MicrosoftAccount.
Type: | PrincipalProviderType |
Accepted values: | OrgId, MicrosoftAccount |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserUpn
Anger UPN (User Principal Name) för en användare, till exempel PattiFuller@contoso.com.
Type: | String[] |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |