New-AzureProfile

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.

The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.

Syntax

New-AzureProfile
   [-Environment <AzureEnvironment>]
   -SubscriptionId <String>
   [-StorageAccount <String>]
   -Certificate <X509Certificate2>
   [<CommonParameters>]
New-AzureProfile
   [-Environment <AzureEnvironment>]
   -SubscriptionId <String>
   [-StorageAccount <String>]
   -Credential <PSCredential>
   -Tenant <String>
   [-ServicePrincipal]
   [<CommonParameters>]
New-AzureProfile
   [-Environment <AzureEnvironment>]
   -SubscriptionId <String>
   [-StorageAccount <String>]
   -AccessToken <String>
   -AccountId <String>
   [<CommonParameters>]
New-AzureProfile
   [-Environment <AzureEnvironment>]
   -SubscriptionId <String>
   [-StorageAccount <String>]
   -Credential <PSCredential>
   [-Tenant <String>]
   [<CommonParameters>]
New-AzureProfile
   [-Environment <AzureEnvironment>]
   [<CommonParameters>]
New-AzureProfile
   -Path <String>
   [<CommonParameters>]
New-AzureProfile
   -Properties <Hashtable>
   [<CommonParameters>]

Examples

1:

PS C:\>

Parameters

-AccessToken

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AccountId

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Certificate

Type:X509Certificate2
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Credential

Type:PSCredential
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Environment

Type:AzureEnvironment
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Path

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Properties

Type:Hashtable
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ServicePrincipal

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-StorageAccount

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Tenant

Type:String
Aliases:TenantId
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False