This document describes the changes between the 6.x versions of AzureRM and Az version 1.0.0
- General breaking changes
- Module breaking changes
- Az.ApiManagement (previously AzureRM.ApiManagement)
- Az.Billing (previously AzureRM.Billing, AzureRM.Consumption, and AzureRM.UsageAggregates)
- Az.CognitiveServices (previously AzureRM.CognitiveServices)
- Az.Compute (previously AzureRM.Compute)
- Az.DataFactory (previously AzureRM.DataFactories and AzureRM.DataFactoryV2)
- Az.DataLakeAnalytics (previously AzureRM.DataLakeAnalytics)
- Az.DataLakeStore (previously AzureRM.DataLakeStore)
- Az.KeyVault (previously AzureRM.KeyVault)
- Az.Media (previously AzureRM.Media)
- Az.Monitor (previously AzureRM.Insights)
- Az.Network (previously AzureRM.Network)
- Az.OperationalInsights (previously AzureRM.OperationalInsights)
- Az.RecoveryServices (previously AzureRM.RecoveryServices, AzureRM.RecoveryServices.Backup, and AzureRM.RecoveryServices.SiteRecovery)
- Az.Resources (previously AzureRM.Resources)
- Az.ServiceFabric (previously AzureRM.ServiceFabric)
- Az.Sql (previously AzureRM.Sql)
- Az.Storage (previously Azure.Storage and AzureRM.Storage)
- Az.Websites (previously AzureRM.Websites)
- The module names have changed from
AzureRM.*
toAz.*
, except for the following modules:
AzureRM.Profile -> Az.Accounts
Azure.AnalysisServices -> Az.AnalysisServices
AzureRM.Consumption -> Az.Billing
AzureRM.UsageAggregates -> Az.Billing
AzureRM.DataFactories -> Az.DataFactory
AzureRM.DataFactoryV2 -> Az.DataFactory
AzureRM.MachineLearningCompute -> Az.MachineLearning
AzureRM.Insights -> Az.Monitor
AzureRM.RecoveryServices.Backup -> Az.RecoveryServices
AzureRM.RecoveryServices.SiteRecovery -> Az.RecoveryServices
AzureRM.Tags -> Az.Resources
Azure.Storage -> Az.Storage
- For full details on migrating from AzureRM to Az, see our blog post.
AzureRM.Backup
AzureRM.Compute.ManagedService
AzureRM.Scheduler
- Using Az with Windows PowerShell 5.1 requires the installation of .NET 4.7.2. However, using Az with PowerShell Core does not require .NET 4.7.2. For full details, see our blog post.
- Due to changes in the authenication flow for .NET Standard, we are temporarily removing user login via PSCredential. This will be re-implemented in the near future. For full details, see our blog post.
- Due to changes in the authenication flow for .NET Standard, we are temporarily using device login as the default login flow during interactive login. Web browser based login will be re-added as the default in the near future. At that time, device login will available via a parameter. For full details, see our blog post.
- Removing the following cmdlets:
- New-AzureRmApiManagementHostnameConfiguration
- Set-AzureRmApiManagementHostnames
- Update-AzureRmApiManagementDeployment
- Import-AzureRmApiManagementHostnameCertificate
- Please refer to examples of Set-AzApiManagement cmdlet instead
- Following properties were removed
- Removed property
PortalHostnameConfiguration
,ProxyHostnameConfiguration
,ManagementHostnameConfiguration
andScmHostnameConfiguration
of typePsApiManagementHostnameConfiguration
fromPsApiManagementContext
. Instead usePortalCustomHostnameConfiguration
,ProxyCustomHostnameConfiguration
,ManagementCustomHostnameConfiguration
andScmCustomHostnameConfiguration
of typePsApiManagementCustomHostNameConfiguration
. - Removed property
StaticIPs
from PsApiManagementContext. The property has been split intoPublicIPAddresses
andPrivateIPAddresses
. - Removed required property
Location
from NewAzureApiManagementVirtualNetwork cmdlet, as it was redundant parameter.
- Removed property
- The
InvoiceName
parameter was removed from theGet-AzConsumptionUsageDetail
cmdlet
- Removed
GetSkusWithAccountParamSetName
parameter set fromGet-AzCognitiveServicesAccountSkus
cmdlet
IdentityIds
are removed fromIdentity
property inPSVirtualMachine
andPSVirtualMachineScaleSet
objects- The type of
InstanceView
property ofPSVirtualMachineScaleSetVM
object is changed fromVirtualMachineInstanceView
toVirtualMachineScaleSetVMInstanceView
AutoOSUpgradePolicy
andAutomaticOSUpgrade
properties are removed fromUpgradePolicy
property- The type of
Sku
property inPSSnapshotUpdate
object is changed fromDiskSku
toSnapshotSku
VmScaleSetVMParameterSet
is removed fromAdd-AzVMDataDisk
cmdlet
- The
GatewayName
parameter has become mandatory in theNew-AzDataFactoryEncryptValue
cmdlet - Removed
New-AzDataFactoryGatewayKey
cmdlet - Removed
LinkedServiceName
parameter fromGet-AzDataFactoryV2ActivityRun
cmdlet
- Removed deprecated cmdlets:
New-AzDataLakeAnalyticsCatalogSecret
,Remove-AzDataLakeAnalyticsCatalogSecret
, andSet-AzDataLakeAnalyticsCatalogSecret
- The following cmdlets have had the
Encoding
parameter changed from the typeFileSystemCmdletProviderEncoding
toSystem.Text.Encoding
. This change removes the encoding valuesString
andOem
. All the other prior encoding values remain.- New-AzureRmDataLakeStoreItem
- Add-AzureRmDataLakeStoreItemContent
- Get-AzureRmDataLakeStoreItemContent
- Removed deprecated
Tags
property alias fromNew-AzDataLakeStoreAccount
andSet-AzDataLakeStoreAccount
cmdlets - Removed deprecated properties from
PSDataLakeStoreAccountBasic
object
- The
PurgeDisabled
property was removed from thePSKeyVaultKeyAttributes
,PSKeyVaultKeyIdentityItem
, andPSKeyVaultSecretAttributes
objects
- Remove deprecated
Tags
property alias fromNew-AzMediaService
cmdlet
- Removed plural names
Categories
andTimegrains
parameter in favor of singular parameter names fromSet-AzDiagnosticSetting
cmdlet
- Removed deprecated
ResourceId
parameter fromGet-AzServiceEndpointPolicyDefinition
cmdlet - Removed deprecated
EnableVmProtection
property fromPSVirtualNetwork
object - Removed deprecated
Set-AzVirtualNetworkGatewayVpnClientConfig
cmdlet
- Default parameter set for
Get-AzOperationalInsightsDataSource
is removed, andByWorkspaceNameByKind
has become the default parameter set
Az.RecoveryServices (previously AzureRM.RecoveryServices, AzureRM.RecoveryServices.Backup, and AzureRM.RecoveryServices.SiteRecovery)
- Removed
Encryption
parameter fromNew/Set-AzRecoveryServicesAsrPolicy
cmdlet TargetStorageAccountName
parameter is now mandatory for managed disk restores inRestore-AzRecoveryServicesBackupItem
cmdlet- Removed
StorageAccountName
andStorageAccountResourceGroupName
parameters inRestore-AzRecoveryServicesBackupItem
cmdlet - Removed
Name
parameter inGet-AzRecoveryServicesBackupContainer
cmdlet
- Removed
Sku
parameter fromNew/Set-AzPolicyAssignment
cmdlet - Removed
Password
parameter fromNew-AzADServicePrincipal
andNew-AzADSpCredential
cmdlet
- The following cmdlet return types have been changed:
- The property
SerivceTypeHealthPolicies
of typeApplicationHealthPolicy
has been removed. - The property
ApplicationHealthPolicies
of typeClusterUpgradeDeltaHealthPolicy
has been removed. - The property
OverrideUserUpgradePolicy
of typeClusterUpgradePolicy
has been removed. - These changes affect the following cmdlets:
- Add-AzServiceFabricClientCertificate
- Add-AzServiceFabricClusterCertificate
- Add-AzServiceFabricNode
- Add-AzServiceFabricNodeType
- Get-AzServiceFabricCluster
- Remove-AzServiceFabricClientCertificate
- Remove-AzServiceFabricClusterCertificate
- Remove-AzServiceFabricNode
- Remove-AzServiceFabricNodeType
- Remove-AzServiceFabricSetting
- Set-AzServiceFabricSetting
- Set-AzServiceFabricUpgradeType
- Update-AzServiceFabricDurability
- Update-AzServiceFabricReliability
- The property
- Removed
State
andResourceId
parameters fromSet-AzSqlDatabaseBackupLongTermRetentionPolicy
cmdlet - Removed deprecated cmdlets:
Get/Set-AzSqlServerBackupLongTermRetentionVault
,Get/Start/Stop-AzSqlServerUpgrade
,Get/Set-AzSqlDatabaseAuditingPolicy
,Get/Set-AzSqlServerAuditingPolicy
,Remove-AzSqlDatabaseAuditing
,Remove-AzSqlServerAuditing
- Removed deprecated parameter
Current
fromGet-AzSqlDatabaseBackupLongTermRetentionPolicy
cmdlet - Removed deprecated parameter
DatabaseName
fromGet-AzSqlServerServiceObjective
cmdlet - Removed deprecated parameter
PrivilegedLogin
fromSet-AzSqlDatabaseDataMaskingPolicy
cmdlet
- To support creating an Oauth storage context with only the storage account name, the default parameter set has been changed to
OAuthParameterSet
- Example:
$ctx = New-AzureStorageContext -StorageAccountName $accountName
- Example:
- The
Location
parameter has become mandatory in theGet-AzStorageUsage
cmdlet - The XSCL API changes include, but not limited to:
$b = Get-AzureStorageBlob -Container $containerName -Blob $blobName -Context $ctx
$b.ICloudBlob.Snapshot()
$b = Get-AzureStorageBlob -Container $containerName -Blob $blobName -Context $ctx
$task = $b.ICloudBlob.SnapshotAsync()
$task.Wait()
$snapshot = $task.Result
$Share = Get-AzureStorageShare -Name $containerName -Context $ctx
$snapshot = $Share.Snapshot()
$Share = Get-AzureStorageShare -Name $containerName -Context $ctx
$task = $Share.SnapshotAsync()
$task.Wait()
$snapshot = $task.Result
$b = Get-AzureStorageBlob -Container $containerName -Blob $blobName -IncludeDeleted -Context $ctx
$b.ICloudBlob.Undelete()
$b = Get-AzureStorageBlob -Container $containerName -Blob $blobName -IncludeDeleted -Context $ctx
$task = $b.ICloudBlob.UndeleteAsync()
$task.Wait()
$blockBlob = Get-AzureStorageBlob -Container $containerName -Blob $blockBlobName -Context $ctx
$blockBlob.ICloudBlob.SetStandardBlobTier("hot")
$pageBlob = Get-AzureStorageBlob -Container $containerName -Blob $pageBlobName -Context $ctx
$pageBlob.ICloudBlob.SetPremiumBlobTier("P4")
$blockBlob = Get-AzureStorageBlob -Container $containerName -Blob $blockBlobName -Context $ctx
$task = $blockBlob.ICloudBlob.SetStandardBlobTierAsync("hot")
$task.Wait()
$pageBlob = Get-AzureStorageBlob -Container $containerName -Blob $pageBlobName -Context $ctx
$task = $pageBlob.ICloudBlob.SetPremiumBlobTierAsync("P4")
$task.Wait()
- Removed deprecated properties from the
PSAppServicePlan
,PSCertificate
,PSCloningInfo
, andPSSite
objects
Missing:
Consumption https://github.com/Azure/azure-powershell/pull/8062/files#diff-8b034bfa79b7609a19beb55544b9c89eL20
Media: https://github.com/Azure/azure-powershell/pull/8074/files#diff-0af26d0505e7f587022cbf803650b2b4R21
Insights: https://github.com/Azure/azure-powershell/pull/8075/files#diff-306d33c02b739cddae42ab0451564720R21
OperationalInsights: https://github.com/Azure/azure-powershell/pull/8076/files#diff-08f420543752bb757d75843b97c9911aR21
DataLakeAnalytics: https://github.com/Azure/azure-powershell/pull/8078/files#diff-92b711e45068a25d54f8139f41dc903bR21
Sql: this and this
Things that still need to get merged (but will happen):
ApiManagement: https://github.com/Azure/azure-powershell/pull/7909/files#diff-8259462537f7bf2dfe6884249c1b2698R21
Resources: https://github.com/Azure/azure-powershell/pull/8067/files#diff-e7bbaa1b074583edfb52b8d8a6f82a83R21
Network: https://github.com/Azure/azure-powershell/pull/8079/files#diff-22072398bfdba9fdc20e34ccc8051168R39
RecoveryServices: this and this and this