C# 클래스 Microsoft.Azure.ServiceManagemenet.Common.ProfileClient

Convenience client for azure profile and subscriptions.
파일 보기 프로젝트 열기: Azure/azure-powershell 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DebugLog Action
WarningLog Action

공개 메소드들

메소드 설명
AddAccountAndLoadSubscriptions ( AzureAccount account, AzureEnvironment environment, SecureString password ) : AzureAccount
AddOrSetAccount ( AzureAccount account ) : AzureAccount
AddOrSetEnvironment ( AzureEnvironment environment ) : AzureEnvironment
AddOrSetSubscription ( AzureSubscription subscription ) : AzureSubscription
ClearAll ( ) : void
ClearDefaultSubscription ( ) : void
GetAccount ( string accountName ) : AzureAccount
GetAccountOrDefault ( string accountName ) : AzureAccount
GetAccountOrNull ( string accountName ) : AzureAccount
GetEnvironment ( string name, string serviceEndpoint, string resourceEndpoint ) : AzureEnvironment
GetEnvironmentOrDefault ( string name ) : AzureEnvironment
GetSubscription ( System.Guid id ) : AzureSubscription
GetSubscription ( string name ) : AzureSubscription
ImportCertificate ( X509Certificate2 certificate ) : void
ImportPublishSettings ( string filePath, string environmentName ) : List
InitializeProfile ( AzureEnvironment environment, System.Guid subscriptionId, AzureAccount account, SecureString password, string storageAccount ) : void

Initializes AzureSMProfile using passed in account and optional password.

InitializeProfile ( AzureEnvironment environment, System.Guid subscriptionId, X509Certificate2 certificate, string storageAccount ) : void

Initializes AzureSMProfile using passed in certificate. The certificate is imported into a certificate store.

InitializeProfile ( AzureEnvironment environment, System.Guid subscriptionId, string accessToken, string accountId, string storageAccount ) : void

Initializes AzureSMProfile using passed in access token.

ListAccounts ( string accountName ) : IEnumerable
ListEnvironments ( string name ) : List
ListSubscriptionAccounts ( System.Guid subscriptionId ) : List
ProfileClient ( AzureSMProfile profile ) : Hyak.Common
RefreshSubscriptions ( AzureEnvironment environment ) : List
RemoveAccount ( string accountId ) : AzureAccount
RemoveEnvironment ( string name ) : AzureEnvironment
RemoveSubscription ( System.Guid id ) : AzureSubscription
RemoveSubscription ( string name ) : AzureSubscription
SetSubscriptionAsDefault ( System.Guid id, string accountName ) : AzureSubscription
SetSubscriptionAsDefault ( string name, string accountName ) : AzureSubscription

비공개 메소드들

메소드 설명
CopyAccount ( AzureAccount sourceAccount, AzureAccount targetAccount ) : void
GetSubscriptionAccount ( System.Guid subscriptionId ) : AzureAccount
ListServiceManagementSubscriptions ( AzureAccount account, AzureEnvironment environment, SecureString password, ShowDialog promptBehavior, string tenants ) : IEnumerable
ListSubscriptionsFromPublishSettingsFile ( string filePath, string environment ) : List
ListSubscriptionsFromServer ( AzureAccount account, AzureEnvironment environment, SecureString password, ShowDialog promptBehavior ) : IEnumerable
ListSubscriptionsFromServerForAllAccounts ( AzureEnvironment environment ) : IEnumerable
LoadAccountTenants ( AzureAccount account, AzureEnvironment environment, SecureString password, ShowDialog promptBehavior ) : string[]
MergeAccountProperties ( AzureAccount account1, AzureAccount account2 ) : AzureAccount
MergeEnvironmentProperties ( AzureEnvironment environment1, AzureEnvironment environment2 ) : AzureEnvironment
MergeSubscriptionProperties ( AzureSubscription subscription1, AzureSubscription subscription2 ) : AzureSubscription
UpgradeProfile ( ) : void
WriteDebugMessage ( string message ) : void
WriteOrThrowAadExceptionMessage ( AadAuthenticationException aadEx ) : void
WriteOrThrowAadExceptionMessage ( CloudException aadEx ) : void
WriteWarningMessage ( string message ) : void

메소드 상세

AddAccountAndLoadSubscriptions() 공개 메소드

public AddAccountAndLoadSubscriptions ( AzureAccount account, AzureEnvironment environment, SecureString password ) : AzureAccount
account Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount
environment Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment
password System.Security.SecureString
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount

AddOrSetAccount() 공개 메소드

public AddOrSetAccount ( AzureAccount account ) : AzureAccount
account Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount

AddOrSetEnvironment() 공개 메소드

public AddOrSetEnvironment ( AzureEnvironment environment ) : AzureEnvironment
environment Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment

AddOrSetSubscription() 공개 메소드

public AddOrSetSubscription ( AzureSubscription subscription ) : AzureSubscription
subscription Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription

ClearAll() 공개 메소드

public ClearAll ( ) : void
리턴 void

ClearDefaultSubscription() 공개 메소드

public ClearDefaultSubscription ( ) : void
리턴 void

GetAccount() 공개 메소드

public GetAccount ( string accountName ) : AzureAccount
accountName string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount

GetAccountOrDefault() 공개 메소드

public GetAccountOrDefault ( string accountName ) : AzureAccount
accountName string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount

GetAccountOrNull() 공개 메소드

public GetAccountOrNull ( string accountName ) : AzureAccount
accountName string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount

GetEnvironment() 공개 메소드

public GetEnvironment ( string name, string serviceEndpoint, string resourceEndpoint ) : AzureEnvironment
name string
serviceEndpoint string
resourceEndpoint string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment

GetEnvironmentOrDefault() 공개 메소드

public GetEnvironmentOrDefault ( string name ) : AzureEnvironment
name string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment

GetSubscription() 공개 메소드

public GetSubscription ( System.Guid id ) : AzureSubscription
id System.Guid
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription

GetSubscription() 공개 메소드

public GetSubscription ( string name ) : AzureSubscription
name string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription

ImportCertificate() 공개 메소드

public ImportCertificate ( X509Certificate2 certificate ) : void
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
리턴 void

ImportPublishSettings() 공개 메소드

public ImportPublishSettings ( string filePath, string environmentName ) : List
filePath string
environmentName string
리턴 List

InitializeProfile() 공개 메소드

Initializes AzureSMProfile using passed in account and optional password.
public InitializeProfile ( AzureEnvironment environment, System.Guid subscriptionId, AzureAccount account, SecureString password, string storageAccount ) : void
environment Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment Environment object.
subscriptionId System.Guid Subscription Id
account Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount Azure account with AD username and tenant.
password System.Security.SecureString AD password (optional).
storageAccount string Storage account name (optional).
리턴 void

InitializeProfile() 공개 메소드

Initializes AzureSMProfile using passed in certificate. The certificate is imported into a certificate store.
public InitializeProfile ( AzureEnvironment environment, System.Guid subscriptionId, X509Certificate2 certificate, string storageAccount ) : void
environment Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment Environment object.
subscriptionId System.Guid Subscription Id
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate to use with profile.
storageAccount string Storage account name (optional).
리턴 void

InitializeProfile() 공개 메소드

Initializes AzureSMProfile using passed in access token.
public InitializeProfile ( AzureEnvironment environment, System.Guid subscriptionId, string accessToken, string accountId, string storageAccount ) : void
environment Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment Environment object.
subscriptionId System.Guid Subscription Id
accessToken string AccessToken to use with profile.
accountId string AccountId for the new account.
storageAccount string Storage account name (optional).
리턴 void

ListAccounts() 공개 메소드

public ListAccounts ( string accountName ) : IEnumerable
accountName string
리턴 IEnumerable

ListEnvironments() 공개 메소드

public ListEnvironments ( string name ) : List
name string
리턴 List

ListSubscriptionAccounts() 공개 메소드

public ListSubscriptionAccounts ( System.Guid subscriptionId ) : List
subscriptionId System.Guid
리턴 List

ProfileClient() 공개 메소드

public ProfileClient ( AzureSMProfile profile ) : Hyak.Common
profile Microsoft.Azure.Commands.Common.Authentication.Models.AzureSMProfile
리턴 Hyak.Common

RefreshSubscriptions() 공개 메소드

public RefreshSubscriptions ( AzureEnvironment environment ) : List
environment Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment
리턴 List

RemoveAccount() 공개 메소드

public RemoveAccount ( string accountId ) : AzureAccount
accountId string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureAccount

RemoveEnvironment() 공개 메소드

public RemoveEnvironment ( string name ) : AzureEnvironment
name string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureEnvironment

RemoveSubscription() 공개 메소드

public RemoveSubscription ( System.Guid id ) : AzureSubscription
id System.Guid
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription

RemoveSubscription() 공개 메소드

public RemoveSubscription ( string name ) : AzureSubscription
name string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription

SetSubscriptionAsDefault() 공개 메소드

public SetSubscriptionAsDefault ( System.Guid id, string accountName ) : AzureSubscription
id System.Guid
accountName string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription

SetSubscriptionAsDefault() 공개 메소드

public SetSubscriptionAsDefault ( string name, string accountName ) : AzureSubscription
name string
accountName string
리턴 Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription

프로퍼티 상세

DebugLog 공개적으로 프로퍼티

public Action DebugLog
리턴 Action

WarningLog 공개적으로 프로퍼티

public Action WarningLog
리턴 Action