Azure 관리 인증서 (Management Certificate) 추가

  • azureking
    (아주라)
  • azureking's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
03 Apr 2017 17:12 - 04 Apr 2017 10:20 #2008 작성자: azureking
azureking 님의 글: Azure 관리 인증서 (Management Certificate) 추가
1.
PS C:\Users\azureking> Get-Command get-*publish*

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           Get-WAPackPublishSettingsFile                      3.5.0      Azure
Cmdlet          Get-AppvPublishingServer                           1.0.0.0    AppvClient
Cmdlet          Get-AzurePublishSettingsFile                       3.5.0      Azure
Cmdlet          Get-AzureRmVMImagePublisher                        2.7.0      AzureRM.Compute
Cmdlet          Get-AzureRmWebAppPublishingProfile                 2.6.0      AzureRM.Websites
Cmdlet          Get-AzureRmWebAppSlotPublishingProfile             2.6.0      AzureRM.Websites

2.
PS C:\Users\azureking> Get-AzurePublishSettingsFile

3.
PS C:\Users\azureking> Import-AzurePublishSettingsFile "C:\Users\azureking\Downloads\Azure Pass-4-3-2017-credentials.publishsettings"


Id          : abcd1234-0687-484a-810c-xyzxyzxyzxyz
Name        : Azure Pass
Environment : AzureCloud
Account     : 5F405E817ECAFC85591DFE42E30B0A62B49E4357
State       :
Properties  : {}

4.
PS C:\Users\azureking> Get-AzureSubscription


SubscriptionId            : abcd1234-0687-484a-810c-xyzxyzxyzxyz
SubscriptionName          : Azure Pass
Environment               : AzureCloud
DefaultAccount            : admin@xyzxyzxyzxyzsoutlook.onmicrosoft.com
IsDefault                 : True
IsCurrent                 : True
TenantId                  : abcd1234-aabf-4d78-999a-xyzxyzxyzxyz
CurrentStorageAccountName :

5. 위에서 만든 Default Subscription 삭제 (보안상 이슈)
PS C:\Users\azureking> Get-AzureSubscription


SubscriptionId            : abcd1234-0687-484a-810c-xyzxyzxyzxyz
SubscriptionName          : Azure Pass
Environment               : AzureCloud
DefaultAccount            : admin@xyzxyzxyzxyzoutlook.onmicrosoft.com
IsDefault                 : True
IsCurrent                 : True
TenantId                  : abcd1234-aabf-4d78-999a-xyzxyzxyzxyz
CurrentStorageAccountName :



PS C:\Users\azureking> Remove-AzureSubscription -SubscriptionId abcd1234-0687-484a-810c-xyzxyzxyzxyz

확인
Are you sure you want to remove subscription 'abcd1234-0687-484a-810c-xyzxyzxyzxyz'?
[Y] 예(Y)  [N] 아니요(N)  [S] 일시 중단(S)  [?] 도움말 (기본값은 "Y"): y
경고: The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a
new default subscription.
Time to create page: 0.108 seconds
Powered by Kunena Forum