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.BackupAzureRM.Compute.ManagedServiceAzureRM.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,ManagementHostnameConfigurationandScmHostnameConfigurationof typePsApiManagementHostnameConfigurationfromPsApiManagementContext. Instead usePortalCustomHostnameConfiguration,ProxyCustomHostnameConfiguration,ManagementCustomHostnameConfigurationandScmCustomHostnameConfigurationof typePsApiManagementCustomHostNameConfiguration. - Removed property
StaticIPsfrom PsApiManagementContext. The property has been split intoPublicIPAddressesandPrivateIPAddresses. - Removed required property
Locationfrom NewAzureApiManagementVirtualNetwork cmdlet, as it was redundant parameter.
- Removed property
- The
InvoiceNameparameter was removed from theGet-AzConsumptionUsageDetailcmdlet
- Removed
GetSkusWithAccountParamSetNameparameter set fromGet-AzCognitiveServicesAccountSkuscmdlet
IdentityIdsare removed fromIdentityproperty inPSVirtualMachineandPSVirtualMachineScaleSetobjects- The type of
InstanceViewproperty ofPSVirtualMachineScaleSetVMobject is changed fromVirtualMachineInstanceViewtoVirtualMachineScaleSetVMInstanceView AutoOSUpgradePolicyandAutomaticOSUpgradeproperties are removed fromUpgradePolicyproperty- The type of
Skuproperty inPSSnapshotUpdateobject is changed fromDiskSkutoSnapshotSku VmScaleSetVMParameterSetis removed fromAdd-AzVMDataDiskcmdlet
- The
GatewayNameparameter has become mandatory in theNew-AzDataFactoryEncryptValuecmdlet - Removed
New-AzDataFactoryGatewayKeycmdlet - Removed
LinkedServiceNameparameter fromGet-AzDataFactoryV2ActivityRuncmdlet
- Removed deprecated cmdlets:
New-AzDataLakeAnalyticsCatalogSecret,Remove-AzDataLakeAnalyticsCatalogSecret, andSet-AzDataLakeAnalyticsCatalogSecret
- The following cmdlets have had the
Encodingparameter changed from the typeFileSystemCmdletProviderEncodingtoSystem.Text.Encoding. This change removes the encoding valuesStringandOem. All the other prior encoding values remain.- New-AzureRmDataLakeStoreItem
- Add-AzureRmDataLakeStoreItemContent
- Get-AzureRmDataLakeStoreItemContent
- Removed deprecated
Tagsproperty alias fromNew-AzDataLakeStoreAccountandSet-AzDataLakeStoreAccountcmdlets - Removed deprecated properties from
PSDataLakeStoreAccountBasicobject
- The
PurgeDisabledproperty was removed from thePSKeyVaultKeyAttributes,PSKeyVaultKeyIdentityItem, andPSKeyVaultSecretAttributesobjects
- Remove deprecated
Tagsproperty alias fromNew-AzMediaServicecmdlet
- Removed plural names
CategoriesandTimegrainsparameter in favor of singular parameter names fromSet-AzDiagnosticSettingcmdlet
- Removed deprecated
ResourceIdparameter fromGet-AzServiceEndpointPolicyDefinitioncmdlet - Removed deprecated
EnableVmProtectionproperty fromPSVirtualNetworkobject - Removed deprecated
Set-AzVirtualNetworkGatewayVpnClientConfigcmdlet
- Default parameter set for
Get-AzOperationalInsightsDataSourceis removed, andByWorkspaceNameByKindhas become the default parameter set
Az.RecoveryServices (previously AzureRM.RecoveryServices, AzureRM.RecoveryServices.Backup, and AzureRM.RecoveryServices.SiteRecovery)
- Removed
Encryptionparameter fromNew/Set-AzRecoveryServicesAsrPolicycmdlet TargetStorageAccountNameparameter is now mandatory for managed disk restores inRestore-AzRecoveryServicesBackupItemcmdlet- Removed
StorageAccountNameandStorageAccountResourceGroupNameparameters inRestore-AzRecoveryServicesBackupItemcmdlet - Removed
Nameparameter inGet-AzRecoveryServicesBackupContainercmdlet
- Removed
Skuparameter fromNew/Set-AzPolicyAssignmentcmdlet - Removed
Passwordparameter fromNew-AzADServicePrincipalandNew-AzADSpCredentialcmdlet
- The following cmdlet return types have been changed:
- The property
SerivceTypeHealthPoliciesof typeApplicationHealthPolicyhas been removed. - The property
ApplicationHealthPoliciesof typeClusterUpgradeDeltaHealthPolicyhas been removed. - The property
OverrideUserUpgradePolicyof typeClusterUpgradePolicyhas 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
StateandResourceIdparameters fromSet-AzSqlDatabaseBackupLongTermRetentionPolicycmdlet - Removed deprecated cmdlets:
Get/Set-AzSqlServerBackupLongTermRetentionVault,Get/Start/Stop-AzSqlServerUpgrade,Get/Set-AzSqlDatabaseAuditingPolicy,Get/Set-AzSqlServerAuditingPolicy,Remove-AzSqlDatabaseAuditing,Remove-AzSqlServerAuditing - Removed deprecated parameter
CurrentfromGet-AzSqlDatabaseBackupLongTermRetentionPolicycmdlet - Removed deprecated parameter
DatabaseNamefromGet-AzSqlServerServiceObjectivecmdlet - Removed deprecated parameter
PrivilegedLoginfromSet-AzSqlDatabaseDataMaskingPolicycmdlet
- 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
Locationparameter has become mandatory in theGet-AzStorageUsagecmdlet - 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, andPSSiteobjects
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