New-AzureProfile

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Service Management APIs. See the Az PowerShell module for cmdlets to manage Azure Resource Manager resources.

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
Accept pipeline input:False
Accept wildcard characters:False

-AccountId

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

-Certificate

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

-Credential

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

-Environment

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

-Path

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

-Properties

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

-ServicePrincipal

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

-StorageAccount

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

-SubscriptionId

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

-Tenant

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