Microsoft Azure PowerShell 4.0.0의 주요 변경 내용Breaking changes for Microsoft Azure PowerShell 4.0.0

이 문서는 Microsoft Azure PowerShell cmdlet의 소비자를 위한 주요 변경 내용 알림 및 마이그레이션 가이드 역할을 합니다.This document serves as both a breaking change notification and migration guide for consumers of the Microsoft Azure PowerShell cmdlets. 각 섹션에서는 주요 변경에 대한 원동력과 최소 저항의 마이그레이션 경로에 대해 설명합니다.Each section describes both the impetus for the breaking change and the migration path of least resistance. 심층적인 맥락에서는 각 변경 내용과 관련된 끌어오기 요청을 참조하세요.For in-depth context, please refer to the pull request associated with each change.

목차Table of Contents

Compute cmdlet의 주요 변경 내용Breaking changes to Compute cmdlets

이 릴리스에는 다음과 같은 출력 형식이 적용됩니다.The following output types were affected this release:

PSVirtualMachinePSVirtualMachine

  • PSVirtualMachine 개체의 최상위 수준 속성 DataDiskNamesNetworkInterfaceIDs가 출력 형식에서 제거되었습니다.Top level properties DataDiskNames and NetworkInterfaceIDs of nthe PSVirtualMachine object have been removed from the output type. 이러한 속성은 PSVirtualMachine 개체의 StorageProfileNetworkProfile 속성에서 항상 사용 가능하며 앞으로 액세스하는 데 필요한 방법이 될 것입니다.These properties have always been available in the StorageProfile and NetworkProfile properties of the PSVirtualMachine object and will be the way they will need to be accessed going forward.
  • 이 변경 사항은 다음 cmdlet에 적용됩니다.This change affects the following cmdlets:
    • Add-AzureRmVMDataDisk
    • Add-AzureRmVMNetworkInterface
    • Get-AzureRmVM
    • Remove-AzureRmVMDataDisk
    • Remove-AzureRmVMNetworkInterface
    • Set-AzureRmVMDataDisk
# Old
$vm.DataDiskNames
$vm.NetworkInterfaceIDs

# New
$vm.StorageProfile.DataDisks | Select -Property Name
$vm.NetworkProfile.NetworkInterfaces | Select -Property Id

EventHub cmdlet의 주요 변경 내용Breaking changes to EventHub cmdlets

이 릴리스에는 다음과 같은 cmdlet이 적용됩니다.The following cmdlets were affected this release:

Get-AzureRmEventHubNamespaceGet-AzureRmEventHubNamespace

  • 속성 ResourceGroupName이 출력 형식 NamespaceAttributes에서 제거되었습니다.The property ResourceGroupName has been removed from the output type NamespaceAttributes

New-AzureRmEventHubNamespaceNew-AzureRmEventHubNamespace

  • 속성 ResourceGroupName이 출력 형식 NamespaceAttributes에서 제거되었습니다.The property ResourceGroupName has been removed from the output type NamespaceAttributes

Insights cmdlet의 주요 변경 내용Breaking changes to Insights cmdlets

이 릴리스에는 다음과 같은 cmdlet이 적용됩니다.The following cmdlets were affected this release:

Get-AzureRmUsageGet-AzureRmUsage

  • 이 cmdlet은 더 이상 사용되지 않습니다.This cmdlet has been deprecated.

Remove-AzureRmAlertRuleRemove-AzureRmAlertRule

  • 이 cmdlet의 출력이 단일 개체가 있는 목록에서 단일 개체로 변경되었습니다. 이 개체는 요청 ID와 상태 코드를 포함합니다.The output of this cmdlet has changed from a list with a single object to a single object; this object includes the requestId, and status code.
# Old  
$s1 = Remove-AzureRmAlertRule -ResourceGroup $resourceGroup -name chiricutin
if ($s1 -ne $null)
{
    $r = $s1(0).RequestId
    $s = $s1(0).StatusCode
}

# New
$s1 = Remove-AzureRmAlertRule -ResourceGroup $resourceGroup -name chiricutin
$r = $s1.RequestId
$s = $s1.StatusCode

Add-AzureRmLogAlertRuleAdd-AzureRmLogAlertRule

  • 이 cmdlet은 더 이상 사용되지 않습니다.This cmdlet has been deprecated.

Get-AzureRmAlertRuleGet-AzureRmAlertRule

  • 이 cmdlet의 출력(개체 목록)의 각 요소는 평면화되어 { Id, Location, Name, Tags, Properties } 구조의 개체를 반환하는 대신 { Id, Location, Name, Tags, Type, Description, IsEnabled, Condition, Actions, LastUpdatedTime, ...} 구조의 개체를 반환합니다. 이 개체는 Azure 리소스의 모든 특성과 최상위 수준에 있는 AlertRuleResource의 모든 특성을 포함합니다.Each element of the the output (a list of objects) of this cmdlet is flattened, i.e. instead of returning objects with the structure { Id, Location, Name, Tags, Properties } it will return objects with the structure { Id, Location, Name, Tags, Type, Description, IsEnabled, Condition, Actions, LastUpdatedTime, ...}, which is all of the attributes of an Azure Resource plus all of the attributes of an AlertRuleResource at the top level.
# Old
$rules = Get-AzureRmAlertRule -ResourceGroup $resourceGroup
if ($rules -and $rules.count -ge 1)
{
    Write-Host -fore red "Error updating alert rule"
      
    Write-Host $rules(0).Id
    Write-Host $rules(0).Properties.IsEnabled
    Write-Host $rules(0).Properties.Condition
}

# New
$rules = Get-AzureRmAlertRule -ResourceGroup $resourceGroup
if ($rules -and $rules.count -ge 1)
{
    Write-Host -fore red "Error updating alert rule"
 
    Write-Host $rules(0).Id
      
    # Properties will remain for a while
    Write-Host $rules(0).Properties.IsEnabled
      
    # But the properties will be at the top level too. Later Properties will be removed
    Write-Host $rules(0).IsEnabled
    Write-Host $rules(0).Condition
}

Get-AzureRmAutoscaleSettingGet-AzureRmAutoscaleSetting

  • AutoscaleSettingResourceName 필드는 항상 Name 필드와 동일한 값을 포함하므로 더 이상 사용되지 않습니다.The AutoscaleSettingResourceName field is deprecated since it always has the same value as the Name field.
# Old  
$s1 = Get-AzureRmAutoscaleSetting -ResourceGroup $resourceGroup -Name MySetting
if ($s1.AutoscaleSettingResourceName -ne $s1.Name)
{
    Write-Host "There is something wrong with the name"
}

# New
$s1 = Get-AzureRmAutoscaleSetting -ResourceGroup $resourceGroup -Name MySetting
    
# There won't be a AutoscaleSettingResourceName
Write-Host $s1.Name

Remove-AzureRmLogProfileRemove-AzureRmLogProfile

  • 이 cmdlet의 출력이 Boolean에서 RequestIdStatusCode를 포함하는 개체로 변경됩니다.The output of this cmdlet will change from Boolean to and object containing RequestId and StatusCode
# Old  
$s1 = Remove-AzureRmLogProfile -Name myLogProfile
if ($s1 -eq $true)
{
    Write-Host "Removed"
}
else
{
    Write-Host "Failed"
}

# New
$s1 = Remove-AzureRmLogProfile -Name myLogProfile
$r = $s1.RequestId
$s = $s1.StatusCode

Add-AzureRmLogProfileAdd-AzureRmLogProfile

  • 이 cmdlet의 출력이 요청 ID, 상태 코드를 포함하는 개체에서, 업데이트되거나 새로 만든 리소스로 변경됩니다.The output of this cmdlet will change from an object that includes the requestId, status code, and the updated or newly created resource
# Old  
$s1 = Add-AzureRmLogProfile -Name default -StorageAccountId /subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162 -Locations Global -categ Delete, Write, Action -retention 3
$r = $s1.ServiceBusRuleId

# New
$s1 = Add-AzureRmLogProfile -Name default -StorageAccountId /subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162 -Locations Global -categ Delete, Write, Action -retention 3
$r = $s1.RequestId
$s = $s1.StatusCode
$a = $s1.NewResource.ServiceBusRuleId
    

Set-AzureRmDiagnosticSettingsSet-AzureRmDiagnosticSettings

  • 이 명령은 Update-AzureRmDiagnsoticSettings로 이름이 변경됩니다.The command is going to be renamed to Update-AzureRmDiagnsoticSettings
# Old
Set-AzureRmDiagnosticSettings

# New
Update-AzureRmDiagnosticSettings

Network cmdlet의 주요 변경 내용Breaking changes to Network cmdlets

이 릴리스에는 다음과 같은 cmdlet이 적용됩니다.The following cmdlets were affected this release:

New-AzureRmVirtualNetworkGatewayConnectionNew-AzureRmVirtualNetworkGatewayConnection

  • EnableBgp 매개 변수가 string 대신 boolean을 사용하도록 변경되었습니다.EnableBgp parameter has been changed to take a boolean instead of a string
# Old
New-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName "RG" -name "conn1" -VirtualNetworkGateway1 $vnetGateway -LocalNetworkGateway2 $localnetGateway -ConnectionType IPsec -SharedKey "key" -EnableBgp "true"

# New
New-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName "RG" -name "conn1" -VirtualNetworkGateway1 $vnetGateway -LocalNetworkGateway2 $localnetGateway -ConnectionType IPsec -SharedKey "key" -EnableBgp $true

ServiceBus cmdlet의 주요 변경 내용Breaking changes to ServiceBus cmdlets

이 릴리스에는 다음과 같은 cmdlet이 적용됩니다.The following cmdlets were affected this release:

Get-AzureRmServiceBusNamespaceGet-AzureRmServiceBusNamespace

  • 속성 ResourceGroupName이 출력 형식 NamespaceAttributes에서 제거되었습니다.The property ResourceGroupName has been removed from the output type NamespaceAttributes

New-AzureRmServiceBusNamespaceNew-AzureRmServiceBusNamespace

  • 속성 ResourceGroupName이 출력 형식 NamespaceAttributes에서 제거되었습니다.The property ResourceGroupName has been removed from the output type NamespaceAttributes

Sql cmdlet의 주요 변경 내용Breaking changes to Sql cmdlets

이 릴리스에는 다음과 같은 cmdlet이 적용됩니다.The following cmdlets were affected this release:

New-AzureRmSqlDatabaseFailoverGroupNew-AzureRmSqlDatabaseFailoverGroup

  • Tag 매개 변수가 제거되었습니다.Tag parameter has been removed
  • GracePeriodWithDataLossHour 매개 변수의 이름이 GracePeriodWithDataLossHours로 변경되었습니다.GracePeriodWithDataLossHour parameter has been renamed to GracePeriodWithDataLossHours
# Old
New-AzureRmSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -PartnerServerName server2 -FailoverPolicy Automatic -GracePeriodWithDataLossHour 1 -Tag @{ Environment="Test" }

# New
New-AzureRmSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -PartnerServerName server2 -FailoverPolicy Automatic -GracePeriodWithDataLossHours 1

Set-AzureRmSqlDatabaseFailoverGroupSet-AzureRmSqlDatabaseFailoverGroup

  • Tag 매개 변수가 제거되었습니다.Tag parameter has been removed
  • GracePeriodWithDataLossHour 매개 변수의 이름이 GracePeriodWithDataLossHours로 변경되었습니다.GracePeriodWithDataLossHour parameter has been renamed to GracePeriodWithDataLossHours
# Old
Set-AzureRmSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -FailoverPolicy Automatic -GracePeriodWithDataLossHour 1 -Tag @{ Environment="Test" }

# New
Set-AzureRmSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -FailoverPolicy Automatic -GracePeriodWithDataLossHours 1

Add-AzureRmSqlDatabaseToFailoverGroupAdd-AzureRmSqlDatabaseToFailoverGroup

  • Tag 매개 변수가 제거되었습니다.Tag parameter has been removed
# Old
Add-AzureRmSqlDatabaseToFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -Database $db1 -Tag @{ Environment="Test" }

# New
Add-AzureRmSqlDatabaseToFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -Database $db1

Remove-AzureRmSqlDatabaseFromFailoverGroupRemove-AzureRmSqlDatabaseFromFailoverGroup

  • Tag 매개 변수가 제거되었습니다.Tag parameter has been removed
# Old
Remove-AzureRmSqlDatabaseFromFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -Database $db1 -Tag @{ Environment="Test" }

# New
Remove-AzureRmSqlDatabaseFromFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -Database $db1

Remove-AzureRmSqlDatabaseFailoverGroupRemove-AzureRmSqlDatabaseFailoverGroup

  • PartnerResourceGroupName 매개 변수가 제거되었습니다.PartnerResourceGroupName parameter has been removed
  • PartnerServerName 매개 변수가 제거되었습니다.PartnerServerName parameter has been removed
# Old
Remove-AzureRmSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg -PartnerServerName server2 -PartnerResourceGroupName rg

# New
Remove-AzureRmSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server1 -FailoverGroupName fg

Set-AzureRmSqlDatabaseThreatDetectionPolicySet-AzureRmSqlDatabaseThreatDetectionPolicy

  • Usage_Anomaly가 매개 변수 ExcludedDetectionType에 대해 더 이상 유효하지 않습니다.The value Usage_Anomaly is no longer valid for the parameter ExcludedDetectionType

Set-AzureRmSqlServerThreatDetectionPolicySet-AzureRmSqlServerThreatDetectionPolicy

  • Usage_Anomaly가 매개 변수 ExcludedDetectionType에 대해 더 이상 유효하지 않습니다.The value Usage_Anomaly is no longer valid for the parameter ExcludedDetectionType

Storage cmdlet의 주요 변경 내용Breaking changes to Storage cmdlets

이 릴리스에는 다음과 같은 출력 형식 속성이 적용됩니다.The following output type properties were affected this release:

AzureStorageBlob.ICloudBlob.ServiceClientAzureStorageBlob.ICloudBlob.ServiceClient

  • 이 형식에서 다음과 같은 속성이 제거되었습니다(참고: DefaultRequestOptions 속성에서 확인할 수 있음).The following properties were removed from this type (note: they can still be found in DefaultRequestOptions property):
    • LocationMode
    • MaximumExecutionTime
    • ServerTimeout
    • ParallelOperationThreadCount
    • SingleBlobUploadThresholdInBytes
  • 이 변경 사항은 다음 cmdlet에 적용됩니다.This change affects the following cmdlets:
    • Get-AzureStorageBlob
    • Get-AzureStorageBlobContent
    • Get-AzureStorageBlobCopyState
    • Set-AzureStorageBlobContent
    • Start-AzureStorageBlobCopy
    • Stop-AzureStorageBlobCopy

AzureStorageContainer.CloudBlobContainer.ServiceClientAzureStorageContainer.CloudBlobContainer.ServiceClient

  • 이 형식에서 다음과 같은 속성이 제거되었습니다(참고: DefaultRequestOptions 속성에서 확인할 수 있음).The following properties were removed from this type (note: they can still be found in the DefaultRequestOptions property):
    • LocationMode
    • MaximumExecutionTime
    • ServerTimeout
    • ParallelOperationThreadCount
    • SingleBlobUploadThresholdInBytes
  • 이 변경 사항은 다음 cmdlet에 적용됩니다.This change affects the following cmdlets:
    • Get-AzureStorageContainer
    • New-AzureStorageContainer
    • Set-AzureStorageContainerAcl

AzureStorageQueue.CloudQueue.ServiceClientAzureStorageQueue.CloudQueue.ServiceClient

  • 이 형식에서 다음과 같은 속성이 제거되었습니다(참고: DefaultRequestOptions 속성에서 확인할 수 있음).The following properties were removed from this type (note: they can still be found in the DefaultRequestOptions property):
    • LocationMode
    • MaximumExecutionTime
    • RetryPolicy
    • ServerTimeout
  • 이 변경 사항은 다음 cmdlet에 적용됩니다.This change affects the following cmdlets:
    • Get-AzureStorageQueue
    • New-AzureStorageQueue

AzureStorageTable.CloudTable.ServiceClientAzureStorageTable.CloudTable.ServiceClient

  • 이 형식에서 다음과 같은 속성이 제거되었습니다(참고: DefaultRequestOptions 속성에서 확인할 수 있음).The following properties were removed from this type (note: they can still be found in the DefaultRequestOptions property):
    • LocationMode
    • MaximumExecutionTime
    • PayloadFormat
    • RetryPolicy
    • ServerTimeout
  • 이 변경 사항은 다음 cmdlet에 적용됩니다.This change affects the following cmdlets:
    • Get-AzureStorageTable
    • New-AzureStorageTable
# Old
$LocationMode = (Get-AzureStorageBlob -Container $containername)[0].ICloudBlob.ServiceClient.LocationMode       
$ParallelOperationThreadCount = (Get-AzureStorageContainer -Container $containername).CloudBlobContainer.ServiceClient.ParallelOperationThreadCount
$PayloadFormat = (Get-AzureStorageTable -Name $tablename).CloudTable.ServiceClient.PayloadFormat
$RetryPolicy = (Get-AzureStorageQueue -Name $queuename).CloudQueue.ServiceClient.RetryPolicy

# New
$LocationMode = (Get-AzureStorageBlob -Container $containername)[0].ICloudBlob.ServiceClient.DefaultRequestOptions.LocationMode     
$ParallelOperationThreadCount = (Get-AzureStorageContainer -Container $containername).CloudBlobContainer.ServiceClient.DefaultRequestOptions.ParallelOperationThreadCount
$PayloadFormat = (Get-AzureStorageTable -Name $tablename).CloudTable.ServiceClient.DefaultRequestOptions.PayloadFormat
$RetryPolicy = (Get-AzureStorageQueue -Name $queuename).CloudQueue.ServiceClient.DefaultRequestOptions.RetryPolicy

Profile cmdlet의 주요 변경 내용Breaking Changes to Profile Cmdlets

이 릴리스에서는 다음 cmdlet 및 cmdlet 출력 형식이 변경되었습니다.The following cmdlets and cmdlet output types were changed in this release.

Add-AzureRmAccount 주요 변경 내용Add-AzureRmAccount breaking changes

  • EnvironmentName 매개 변수가 제거되고 Environment로 대체되었으며 이제 EnvironmentAzureEnvironment 개체가 아닌 문자열을 사용합니다.EnvironmentName parameter has been removed and replaced with Environment, the Environment now takes a string and not an AzureEnvironment object
# Old
Add-AzureRmAccount -EnvironmentName AzureChinaCloud

# New
Add-AzureRmAccount -Environment AzureChinaCloud

Select-AzureRmProfile의 이름이 Import-AzureRmContext로 바뀌었습니다.Select-AzureRmProfile was renamed to Import-AzureRmContext

Select-AzureRmProfile의 이름이 Import-AzureRmContext로 바뀌었습니다.Select-AzureRmProfile was renamed to Import-AzureRmContext

# Old
Select-AzureRmProfile -Path c:\mydir\myprofile.json

# New
Import-AzureRmContext -Path c:\mydir\myprofile.json

Save-AzureRmProfile의 이름이 Save-AzureRmContext로 바뀌었습니다.Save-AzureRmProfile was renamed to Save-AzureRmContext

Save-AzureRmProfile의 이름이 Save-AzureRmContext로 바뀌었습니다.Save-AzureRmProfile was renamed to Save-AzureRmContext

# Old
Save-AzureRmProfile -Path c:\mydir\myprofile.json

# New
Save-AzureRmContext -Path c:\mydir\myprofile.json

출력 PSAzureContext 형식의 주요 변경 내용Breaking Changes to output PSAzureContext Type

  • TokenCache 속성이 byte[] 대신 IAzureTokenCache를 구현하는 형식으로 변경되었습니다.The TokenCache property changed to a type that implements IAzureTokenCache instead of a byte[]
# Old
$bytes = (Get-AzureRmContext).TokenCache
$bytes = (Set-AzureRmContext -SubscriptionId xxx-xxx-xxx-xxx).TokenCache
$bytes = (Add-AzureRmAccount).Context.TokenCache

# New
$bytes = (Get-AzureRmContext).TokenCache.CacheData
$bytes = (Set-AzureRmContext -SubscriptionId xxx-xxx-xxx-xxx).TokenCache.CacheData
$bytes = (Add-AzureRmAccount).Context.TokenCache.CacheData

출력 PSAzureAccount 형식의 주요 변경 내용Breaking Changes to the output PSAzureAccount Type

  • AccountType 속성이 Type으로 변경되었습니다.The AccountType property was changed to Type
# Old
$type = (Get-AzureRmContext).Account.AccountType
$type = (Set-AzureRmContext -SubscriptionId xxx-xxx-xxx-xxx).Account.AccountType
$type = (Add-AzureRmAccount).Context.Account.AccountType

# New 
$type = (Get-AzureRmContext).Account.Type
$type = (Set-AzureRmContext -SubscriptionId xxx-xxx-xxx-xxx).Account.Type
$type = (Add-AzureRmAccount).Context.Account.Type

출력 PSAzureSubscription 형식의 주요 변경 내용Breaking Changes to the output PSAzureSubscription Type

  • SubscriptionId 속성이 Id로 변경되었습니다.The SubscriptionId property was changed to Id
# Old
$id =(Get-AzureRmSubscription -SubscriptionId xxxx-xxxx-xxxx-xxxx).SubscriptionId
$id =(Add-AzureRmAccount -SubscriptionId xxxx-xxxx-xxxx-xxxx).Context.Subscription.SubscriptionId
$id =(Get-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Subscription.SubscriptionId
$id =(Set-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Subscription.SubscriptionId

# New
$id =(Get-AzureRmSubscription -SubscriptionId xxxx-xxxx-xxxx-xxxx).Id
$id =(Add-AzureRmAccount -SubscriptionId xxxx-xxxx-xxxx-xxxx).Context.Subscription.Id
$id =(Get-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Subscription.Id
$id =(Set-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Subscription.Id
  • SubscriptionName 속성이 Name으로 변경되었습니다.The SubscriptionName property was changed to Name
# Old
$name =(Get-AzureRmSubscription -SubscriptionId xxxx-xxxx-xxxx-xxxx).SubscriptionName
$name =(Add-AzureRmAccount -SubscriptionId xxxx-xxxx-xxxx-xxxx).Context.Subscription.SubscriptionName
$name =(Get-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Subscription.SubscriptionName
$name =(Set-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Subscription.SubscriptionName

# New
$name =(Get-AzureRmSubscription -SubscriptionId xxxx-xxxx-xxxx-xxxx).Name
$name =(Add-AzureRmAccount -SubscriptionId xxxx-xxxx-xxxx-xxxx).Context.Subscription.Name
$name =(Get-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Subscription.Name
$name =(Set-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Subscription.Name

출력 PSAzureTenant 형식의 주요 변경 내용Breaking Changes to the output PSAzureTenant Type

  • TenantId 속성이 Id로 변경되었습니다.The TenantId property was changed to Id
# Old
$id =(Get-AzureRmTenant -TenantId xxxx-xxxx-xxxx-xxxx).TenantId
$id =(Add-AzureRmAccount -SubscriptionId xxxx-xxxx-xxxx-xxxx).Context.Tenant.TenantId
$id =(Get-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Tenant.TenantId
$id =(Set-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Tenant.TenantId

# New
$id =(Get-AzureRmTenant -TenantId xxxx-xxxx-xxxx-xxxx).Id
$id =(Add-AzureRmAccount -SubscriptionId xxxx-xxxx-xxxx-xxxx).Context.Tenant.Id
$id =(Get-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Tenant.Id
$id =(Set-AzureRmContext -SubscriptionId xxxx-xxxx-xxxx-xxxx).Tenant.Id
  • Domain 속성이 Directory로 변경되었습니다.The Domain property was changed to Directory
# Old
$tenantName =(Get-AzureRmTenant -TenantId xxxx-xxxx-xxxx-xxxx).Domain

# New
$tenantName =(Get-AzureRmTenant -TenantId xxxx-xxxx-xxxx-xxxx).Directory