diff --git a/documentation/migration-guides/Az.4.1.0-migration-guide.md b/documentation/migration-guides/Az.4.1.0-migration-guide.md new file mode 100644 index 000000000000..30cc13b1d32a --- /dev/null +++ b/documentation/migration-guides/Az.4.1.0-migration-guide.md @@ -0,0 +1,640 @@ +# Migration Guide for Az 4.1.0 + +This document describes the changes between the 3.0.0 and 4.1.0 versions of Az. + +- [Migration Guide for Az 4.1.0](#migration-guide-for-az-410) + - [Az.ApiManagement](#azapimanagement) + - [`Add-AzApiManagementRegion`](#add-azapimanagementregion) + - [`New-AzApiManagement`](#new-azapimanagement) + - [`Set-AzApiManagement`](#set-azapimanagement) + - [`Get-AzApiManagementProperty`](#get-azapimanagementproperty) + - [`New-AzApiManagementProperty`](#new-azapimanagementproperty) + - [`Remove-AzApiManagementProperty`](#remove-azapimanagementproperty) + - [`Set-AzApiManagementProperty`](#set-azapimanagementproperty) + - [Az.Batch](#azbatch) + - [`Get-AzBatchApplication`, `New-AzBatchApplication`](#get-azbatchapplication-new-azbatchapplication) + - [`Get-AzBatchComputeNode`, `New-AzBatchPool`](#get-azbatchcomputenode-new-azbatchpool) + - [`Get-AzBatchApplicationPackage`, `New-AzBatchApplicationPackage`](#get-azbatchapplicationpackage-new-azbatchapplicationpackage) + - [Az.Compute](#azcompute) + - [`Remove-AzVmssDiagnosticsExtension`](#remove-azvmssdiagnosticsextension) + - [`Get-AzVMImage`](#get-azvmimage) + - [`New-AzVMConfig`](#new-azvmconfig) + - [`Update-AzVM`](#update-azvm) + - [`New-AzProximityPlacementGroup`](#new-azproximityplacementgroup) + - [`Remove-AzProximityPlacementGroup`](#remove-azproximityplacementgroup) + - [`Get-AzProximityPlacementGroup`](#get-azproximityplacementgroup) + - [`Add-AzVmssAdditionalUnattendContent`](#add-azvmssadditionalunattendcontent) + - [`Add-AzVmssDataDisk`](#add-azvmssdatadisk) + - [`Add-AzVmssExtension`](#add-azvmssextension) + - [`Add-AzVmssNetworkInterfaceConfiguration`](#add-azvmssnetworkinterfaceconfiguration) + - [`Add-AzVmssSecret`](#add-azvmsssecret) + - [`Add-AzVmssSshPublicKey`](#add-azvmsssshpublickey) + - [`Add-AzVmssWinRMListener`](#add-azvmsswinrmlistener) + - [`New-AzVmssConfig`](#new-azvmssconfig) + - [`Remove-AzVmssDataDisk`](#remove-azvmssdatadisk) + - [`Remove-AzVmssExtension`](#remove-azvmssextension) + - [`Remove-AzVmssNetworkInterfaceConfiguration`](#remove-azvmssnetworkinterfaceconfiguration) + - [`Set-AzVmssBootDiagnostic`](#set-azvmssbootdiagnostic) + - [`Set-AzVmssOsProfile`](#set-azvmssosprofile) + - [`Set-AzVmssRollingUpgradePolicy`](#set-azvmssrollingupgradepolicy) + - [`Set-AzVmssStorageProfile`](#set-azvmssstorageprofile) + - [`New-AzVmss`](#new-azvmss) + - [`Repair-AzVmssServiceFabricUpdateDomain`](#repair-azvmssservicefabricupdatedomain) + - [`Get-AzVmss`](#get-azvmss) + - [`Set-AzVmssOrchestrationServiceState`](#set-azvmssorchestrationservicestate) + - [`Update-AzVmss`](#update-azvmss) + - [`Add-AzVmssDiagnosticsExtension`](#add-azvmssdiagnosticsextension) + - [`Disable-AzVmssDiskEncryption`](#disable-azvmssdiskencryption) + - [Az.KeyVault](#azkeyvault) + - [`New-AzKeyVaultCertificateOrganizationDetail`](#new-azkeyvaultcertificateorganizationdetail) + - [`New-AzKeyVaultCertificateAdministratorDetail`](#new-azkeyvaultcertificateadministratordetail) + - [`New-AzKeyVault`](#new-azkeyvault) + - [Az.Monitor](#azmonitor) + - [`Add-AzLogProfile`](#add-azlogprofile) + - [`Get-AzLogProfile`](#get-azlogprofile) + - [`New-AzMetricAlertRuleV2Criteria`](#new-azmetricalertrulev2criteria) + - [Az.Network](#aznetwork) + - [`Get-AzNetworkWatcherConnectionMonitor`](#get-aznetworkwatcherconnectionmonitor) + - [`New-AzNetworkWatcherConnectionMonitorTestConfigurationObject`](#new-aznetworkwatcherconnectionmonitortestconfigurationobject) + - [Az.OperationalInsights](#azoperationalinsights) + - [`Get-AzOperationalInsightsDataSource`](#get-azoperationalinsightsdatasource) + - [`New-AzOperationalInsightsApplicationInsightsDataSource`](#new-azoperationalinsightsapplicationinsightsdatasource) + - [`New-AzOperationalInsightsAzureActivityLogDataSource`](#new-azoperationalinsightsazureactivitylogdatasource) + - [`New-AzOperationalInsightsCustomLogDataSource`](#new-azoperationalinsightscustomlogdatasource) + - [`New-AzOperationalInsightsLinuxPerformanceObjectDataSource`](#new-azoperationalinsightslinuxperformanceobjectdatasource) + - [`New-AzOperationalInsightsLinuxSyslogDataSource`](#new-azoperationalinsightslinuxsyslogdatasource) + - [`New-AzOperationalInsightsWindowsEventDataSource`](#new-azoperationalinsightswindowseventdatasource) + - [`New-AzOperationalInsightsWindowsPerformanceCounterDataSource`](#new-azoperationalinsightswindowsperformancecounterdatasource) + - [`Remove-AzOperationalInsightsDataSource`](#remove-azoperationalinsightsdatasource) + - [`Disable-AzOperationalInsightsIISLogCollection`](#disable-azoperationalinsightsiislogcollection) + - [`Disable-AzOperationalInsightsLinuxCustomLogCollection`](#disable-azoperationalinsightslinuxcustomlogcollection) + - [`Disable-AzOperationalInsightsLinuxPerformanceCollection`](#disable-azoperationalinsightslinuxperformancecollection) + - [`Disable-AzOperationalInsightsLinuxSyslogCollection`](#disable-azoperationalinsightslinuxsyslogcollection) + - [`Enable-AzOperationalInsightsIISLogCollection`](#enable-azoperationalinsightsiislogcollection) + - [`Enable-AzOperationalInsightsLinuxCustomLogCollection`](#enable-azoperationalinsightslinuxcustomlogcollection) + - [`Enable-AzOperationalInsightsLinuxPerformanceCollection`](#enable-azoperationalinsightslinuxperformancecollection) + - [`Enable-AzOperationalInsightsLinuxSyslogCollection`](#enable-azoperationalinsightslinuxsyslogcollection) + - [`Get-AzOperationalInsightsSavedSearch`](#get-azoperationalinsightssavedsearch) + - [`Get-AzOperationalInsightsSavedSearchResult`](#get-azoperationalinsightssavedsearchresult) + - [`Get-AzOperationalInsightsSearchResult`](#get-azoperationalinsightssearchresult) + - [`Get-AzOperationalInsightsStorageInsight`](#get-azoperationalinsightsstorageinsight) + - [`New-AzOperationalInsightsStorageInsight`](#new-azoperationalinsightsstorageinsight) + - [`Remove-AzOperationalInsightsStorageInsight`](#remove-azoperationalinsightsstorageinsight) + - [`Set-AzOperationalInsightsStorageInsight`](#set-azoperationalinsightsstorageinsight) + - [`Get-AzOperationalInsightsLinkTarget`](#get-azoperationalinsightslinktarget) + - [`Get-AzOperationalInsightsWorkspace`](#get-azoperationalinsightsworkspace) + - [`New-AzOperationalInsightsWorkspace`](#new-azoperationalinsightsworkspace) + - [`Set-AzOperationalInsightsWorkspace`](#set-azoperationalinsightsworkspace) + - [`Invoke-AzOperationalInsightsQuery`](#invoke-azoperationalinsightsquery) + - [Az.Resources](#azresources) + - [`Get-AzDeploymentScript`](#get-azdeploymentscript) + - [`Get-AzDeploymentScriptLog`](#get-azdeploymentscriptlog) + - [`Save-AzDeploymentScriptLog`](#save-azdeploymentscriptlog) + - [`Get-AzResourceLock, New-AzResourceLock, Remove-AzResourceLock, Set-AzResourceLock`](#get-azresourcelock-new-azresourcelock-remove-azresourcelock-set-azresourcelock) + - [`Get-AzPolicyAlias`](#get-azpolicyalias) + - [`New-AzPolicyAssignment`](#new-azpolicyassignment) + - [`Remove-AzDeploymentScript`](#remove-azdeploymentscript) + - [Az.Storage](#azstorage) + - [`Update-AzStorageAccountNetworkRuleSet`, `Get-AzStorageAccountNetworkRuleSet`](#update-azstorageaccountnetworkruleset-get-azstorageaccountnetworkruleset) + - [`New-AzStorageTable`, `Get-AzStorageTable`](#new-azstoragetable-get-azstoragetable) + - [`Get-AzStorageFile`, `Remove-AzStorageFile`, `Get-AzStorageFileContent`, `Set-AzStorageFileContent`, `Start-AzStorageFileCopy`](#get-azstoragefile-remove-azstoragefile-get-azstoragefilecontent-set-azstoragefilecontent-start-azstoragefilecopy) + - [`Get-AzStorageFile`, `New-AzStorageDirectory`, `Remove-AzStorageDirectory`](#get-azstoragefile-new-azstoragedirectory-remove-azstoragedirectory) + - [`Get-AzStorageShare`, `New-AzStorageShare`, `Remove-AzStorageShare`](#get-azstorageshare-new-azstorageshare-remove-azstorageshare) + - [`Set-AzStorageShareQuota`](#set-azstoragesharequota) + - [`Remove-AzStorageDirectory`](#remove-azstoragedirectory) + +## Az.ApiManagement + +### `Add-AzApiManagementRegion` +The type of property `Type` of type `Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementServiceIdentity` has changed from `Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementServiceIdentityType` to `System.String`. + +### `New-AzApiManagement` +- The cmdlet `New-AzApiManagement` no longer supports the parameter `AssignIdentity` and no alias was found for the original parameter name. +- The parameter set `__AllParameterSets` for cmdlet `New-AzApiManagement` has been removed. + +### `Set-AzApiManagement` +- The cmdlet `Set-AzApiManagement` no longer supports the parameter `AssignIdentity` and no alias was found for the original parameter name. +- The parameter set `__AllParameterSets` for cmdlet `Set-AzApiManagement` has been removed. + +### `Get-AzApiManagementProperty` +The cmdlet `Get-AzApiManagementProperty` has been removed and no alias was found for the original cmdlet name. + +### `New-AzApiManagementProperty` +The cmdlet `New-AzApiManagementProperty` has been removed and no alias was found for the original cmdlet name. + +### `Remove-AzApiManagementProperty` +The cmdlet `Remove-AzApiManagementProperty` has been removed and no alias was found for the original cmdlet name. + +### `Set-AzApiManagementProperty` +The cmdlet `Set-AzApiManagementProperty` has been removed and no alias was found for the original cmdlet name. + +## Az.Batch + +### `Get-AzBatchApplication`, `New-AzBatchApplication` +The property `ApplicationPackages` of type `Microsoft.Azure.Commands.Batch.Models.PSApplication` has been removed. + +### `Get-AzBatchComputeNode`, `New-AzBatchPool` +The property `PublicIPs` of type `Microsoft.Azure.Commands.Batch.Models.PSNetworkConfiguration` has been removed + +### `Get-AzBatchApplicationPackage`, `New-AzBatchApplicationPackage` +The type of property `StorageUrlExpiry` of type `Microsoft.Azure.Commands.Batch.Models.PSApplicationPackage` has changed from `System.DateTime` to `System.DateTime?`. + +## Az.Compute + +### `Remove-AzVmssDiagnosticsExtension` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Get-AzVMImage` +- The cmdlet `Get-AzVMImage` no longer supports the parameter `FilterExpression` and no alias was found for the original parameter name. +- The parameter set `ListVMImage` for cmdlet `Get-AzVMImage` has been removed. + +### `New-AzVMConfig` +- The cmdlet `New-AzVMConfig` no longer supports the parameter `AssignIdentity` and no alias was found for the original parameter name. +- The parameter set `AssignIdentityParameterSet` for cmdlet `New-AzVMConfig` has been removed. + +### `Update-AzVM` +- The cmdlet `Update-AzVM` no longer supports the parameter `AssignIdentity` and no alias was found for the original parameter name. +- The parameter set `AssignIdentityParameterSet` for cmdlet `Update-AzVM` has been removed. + +### `New-AzProximityPlacementGroup` +- The generic type for property `VirtualMachines`, `VirtualMachineScaleSets` and `AvailabilitySets` has been changed from `System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResource]` to `System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResourceWithColocationStatus]`. +- The property `VirtualMachinesColocationStatus`, `VirtualMachineScaleSetsColocationStatus` and `AvailabilitySetsColocationStatus` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup` has been removed. + +#### Before +```powershell +PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = 'val1'} | Format-List + +ResourceGroupName : $resourceGroupName +ProximityPlacementGroupType : Standard +VirtualMachinesColocationStatus : {} +VirtualMachineScaleSetsColocationStatus : {} +AvailabilitySetsColocationStatus : {} +ColocationStatus : +Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName +Name : $proximityPlacementGroupName +Type : Microsoft.Compute/proximityPlacementGroups +Location : $location +Tags : {[key1, val1]} +VirtualMachines : {} +VirtualMachineScaleSets : {} +AvailabilitySets : {} +``` + +#### After +```powershell +PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = 'val1'} | Format-List + +ResourceGroupName : $resourceGroupName +ProximityPlacementGroupType : StandardColocationStatus : +Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName +Name : $proximityPlacementGroupName +Type : Microsoft.Compute/proximityPlacementGroups +Location : $location +Tags : {[key1, val1]} +VirtualMachines : {} +VirtualMachineScaleSets : {} +AvailabilitySets : {} +``` + +### `Remove-AzProximityPlacementGroup` +- The generic type for property `VirtualMachines`, `VirtualMachineScaleSets` and `AvailabilitySets` has been changed from `System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResource]` to `System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResourceWithColocationStatus]`. +- The property `VirtualMachinesColocationStatus`, `VirtualMachineScaleSetsColocationStatus` and `AvailabilitySetsColocationStatus` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup` has been removed. + +#### Before +```powershell +PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzProximityPlacementGroup | Format-List + +ResourceGroupName : $resourceGroupName +ProximityPlacementGroupType : Standard +VirtualMachinesColocationStatus : {} +VirtualMachineScaleSetsColocationStatus : {} +AvailabilitySetsColocationStatus : {} +ColocationStatus : +Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName +Name : $proximityPlacementGroupName +Type : Microsoft.Compute/proximityPlacementGroups +Location : $location +Tags : {[key1, val1]} +VirtualMachines : {} +VirtualMachineScaleSets : {} +AvailabilitySets : {} +``` + +#### After +```powershell +PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzProximityPlacementGroup | Format-List + +ResourceGroupName : $resourceGroupName +ProximityPlacementGroupType : StandardColocationStatus : +Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName +Name : $proximityPlacementGroupName +Type : Microsoft.Compute/proximityPlacementGroups +Location : $location +Tags : {[key1, val1]} +VirtualMachines : {} +VirtualMachineScaleSets : {} +AvailabilitySets : {} +``` + +### `Get-AzProximityPlacementGroup` +- The generic type for property `VirtualMachines`, `VirtualMachineScaleSets` and `AvailabilitySets` has been changed from `System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResource]` to `System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResourceWithColocationStatus]`. +- The property `VirtualMachinesColocationStatus`, `VirtualMachineScaleSetsColocationStatus` and `AvailabilitySetsColocationStatus` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroup` has been removed. + +#### Before +```powershell +PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Format-List + +ResourceGroupName : $resourceGroupName +ProximityPlacementGroupType : Standard +VirtualMachinesColocationStatus : {} +VirtualMachineScaleSetsColocationStatus : {} +AvailabilitySetsColocationStatus : {} +ColocationStatus : +Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName +Name : $proximityPlacementGroupName +Type : Microsoft.Compute/proximityPlacementGroups +Location : $location +Tags : {[key1, val1]} +VirtualMachines : {} +VirtualMachineScaleSets : {} +AvailabilitySets : {} +``` + +#### After +```powershell +PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Format-List + +ResourceGroupName : $resourceGroupName +ProximityPlacementGroupType : StandardColocationStatus : +Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName +Name : $proximityPlacementGroupName +Type : Microsoft.Compute/proximityPlacementGroups +Location : $location +Tags : {[key1, val1]} +VirtualMachines : {} +VirtualMachineScaleSets : {} +AvailabilitySets : {} +``` + +### `Add-AzVmssAdditionalUnattendContent` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Add-AzVmssDataDisk` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Add-AzVmssExtension` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Add-AzVmssNetworkInterfaceConfiguration` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Add-AzVmssSecret` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Add-AzVmssSshPublicKey` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Add-AzVmssWinRMListener` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `New-AzVmssConfig` +- The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. +- No longer supports the parameter `AutomaticRepairMaxInstanceRepairsPercent` and no alias was found for the original parameter name. +- No longer supports the parameter `AssignIdentity` and no alias was found for the original parameter name. +- The parameter set `__AllParameterSets` has been removed. +- The parameter set `ExplicitIdentityParameterSet` has been removed. +- The parameter set `AssignIdentityParameterSet` has been removed. + +### `Remove-AzVmssDataDisk` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Remove-AzVmssExtension` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Remove-AzVmssNetworkInterfaceConfiguration` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Set-AzVmssBootDiagnostic` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Set-AzVmssOsProfile` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Set-AzVmssRollingUpgradePolicy` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Set-AzVmssStorageProfile` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `New-AzVmss` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Repair-AzVmssServiceFabricUpdateDomain` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Get-AzVmss` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Set-AzVmssOrchestrationServiceState` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Update-AzVmss` +- The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. +- No longer supports the parameter `AutomaticRepairMaxInstanceRepairsPercent` and no alias was found for the original parameter name. +- The parameter set `__AllParameterSets` has been removed. +- The parameter set `ExplicitIdentityParameterSet` has been removed. + +### `Add-AzVmssDiagnosticsExtension` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +### `Disable-AzVmssDiskEncryption` +The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet` has changed from `Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy` to `Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy`. + +## Az.KeyVault + +### `New-AzKeyVaultCertificateOrganizationDetail` +The alias `New-AzKeyVaultCertificateOrganizationDetails` is removed. Please use `New-AzKeyVaultCertificateOrganizationDetail`. + +#### Before +```powershell +PS C:\> New-AzKeyVaultCertificateOrganizationDetails -AdministratorDetails $AdminDetails +``` + +#### After +```powershell +PS C:\> New-AzKeyVaultCertificateOrganizationDetail -AdministratorDetails $AdminDetails +``` + +### `New-AzKeyVaultCertificateAdministratorDetail` +The alias `New-AzKeyVaultCertificateAdministratorDetails` is removed. Please use `New-AzKeyVaultCertificateAdministratorDetail`. + +#### Before +```powershell +PS C:\> $AdminDetails = New-AzKeyVaultCertificateAdministratorDetails -FirstName 'Patti' -LastName 'Fuller' -EmailAddress 'patti.fuller@contoso.com' -PhoneNumber '5553334444' +``` + +#### After +```powershell +PS C:\> $AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName 'Patti' -LastName 'Fuller' -EmailAddress 'patti.fuller@contoso.com' -PhoneNumber '5553334444' +``` + +### `New-AzKeyVault` +`-EnableSoftDelete` is removed, as soft delete is enabled by default. Please use `-DisableSoftDelete` if you do not want this behavior. + +#### Before +```powershell +PS C:\> New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' -EnableSoftDelete +``` + +#### After +```powershell +PS C:\> New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' +``` + +## Az.Monitor + +### `Add-AzLogProfile` +The type of property `RetentionPolicy` of type `Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile` has changed from `Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy` to `Microsoft.Azure.Management.Monitor.Models.RetentionPolicy`. + +### `Get-AzLogProfile` +The type of property `RetentionPolicy` of type `Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile` has changed from `Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy` to `Microsoft.Azure.Management.Monitor.Models.RetentionPolicy`. + +### `New-AzMetricAlertRuleV2Criteria` +The parameter set `__AllParameterSets` for cmdlet `New-AzMetricAlertRuleV2Criteria` has been removed. + +## Az.Network + +### `Get-AzNetworkWatcherConnectionMonitor` +The generic type for property `RoundTripTimeMs` has been changed from `System.Nullable1[System.Int32]` to `System.Nullable1[System.Double]`. + +### `New-AzNetworkWatcherConnectionMonitorTestConfigurationObject` +The generic type for parameter `SuccessThresholdRoundTripTimeMs` has been changed from `System.Nullable1[System.Int32]` to `System.Nullable1[System.Double]`. + +## Az.OperationalInsights + +### `Get-AzOperationalInsightsDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsApplicationInsightsDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsAzureActivityLogDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsCustomLogDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsLinuxPerformanceObjectDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsLinuxSyslogDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsWindowsEventDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsWindowsPerformanceCounterDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Remove-AzOperationalInsightsDataSource` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Disable-AzOperationalInsightsIISLogCollection` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Disable-AzOperationalInsightsLinuxCustomLogCollection` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Disable-AzOperationalInsightsLinuxPerformanceCollection` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Disable-AzOperationalInsightsLinuxSyslogCollection` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Enable-AzOperationalInsightsIISLogCollection` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Enable-AzOperationalInsightsLinuxCustomLogCollection` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Enable-AzOperationalInsightsLinuxPerformanceCollection` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Enable-AzOperationalInsightsLinuxSyslogCollection` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Get-AzOperationalInsightsSavedSearch` +The property `Metadata` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSSearchListSavedSearchResponse` has been removed. + +### `Get-AzOperationalInsightsSavedSearchResult` +The cmdlet `Get-AzOperationalInsightsSavedSearchResult` has been removed and no alias was found for the original cmdlet name. + +### `Get-AzOperationalInsightsSearchResult` +The cmdlet `Get-AzOperationalInsightsSearchResult` has been removed and no alias was found for the original cmdlet name. + +### `Get-AzOperationalInsightsStorageInsight` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsStorageInsight` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Remove-AzOperationalInsightsStorageInsight` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Set-AzOperationalInsightsStorageInsight` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Get-AzOperationalInsightsLinkTarget` +The cmdlet `Get-AzOperationalInsightsLinkTarget` has been removed and no alias was found for the original cmdlet name. + +### `Get-AzOperationalInsightsWorkspace` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `New-AzOperationalInsightsWorkspace` +- The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. +- The cmdlet `New-AzOperationalInsightsWorkspace` no longer supports the parameter `CustomerId` and no alias was found for the original parameter name. +- The parameter set `__AllParameterSets` for cmdlet `New-AzOperationalInsightsWorkspace` has been removed. + +### `Set-AzOperationalInsightsWorkspace` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +### `Invoke-AzOperationalInsightsQuery` +The property `PortalUrl` of type `Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace` has been removed. + +## Az.Resources + +### `Get-AzDeploymentScript` +The type of property `Status` of type `Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript` has changed from `Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus` to `Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus`. + +### `Get-AzDeploymentScriptLog` +The type of property `Status` of type `Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript` has changed from `Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus` to `Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus`. + +### `Save-AzDeploymentScriptLog` +The type of property `Status` of type `Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript` has changed from `Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus` to `Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus`. + +### `Get-AzResourceLock, New-AzResourceLock, Remove-AzResourceLock, Set-AzResourceLock` +Parameter `TenantLevel` has been removed. + +### `Get-AzPolicyAlias` +The generic type for property `Aliases` has been changed from `System.Collections.Generic.IList1[Microsoft.Azure.Management.ResourceManager.Models.AliasType]` to `System.Collections.Generic.IList1[Microsoft.Azure.Management.ResourceManager.Models.Alias]`. + +### `New-AzPolicyAssignment` +- The cmdlet `New-AzPolicyAssignment` no longer supports the type `System.Management.Automation.PSObject` for parameter `PolicyDefinition`. +- The cmdlet `New-AzPolicyAssignment` no longer supports the type `System.Management.Automation.PSObject` for parameter `PolicySetDefinition`. + +### `Remove-AzDeploymentScript` +The type of property `Status` of type `Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript` has changed from `Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus` to `Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus`. + +## Az.Storage + +### `Update-AzStorageAccountNetworkRuleSet`, `Get-AzStorageAccountNetworkRuleSet` +Changed NetWorkRule DefaultAction value from: Allow = 1, Deny = 0, to: Allow = 0, Deny = 1. + +### `New-AzStorageTable`, `Get-AzStorageTable` +Output object AzureStorageTable.CloudTable.ServiceClient have 2 properties removed: ConnectionPolicy, ConsistencyLevel. + +### `Get-AzStorageFile`, `Remove-AzStorageFile`, `Get-AzStorageFileContent`, `Set-AzStorageFileContent`, `Start-AzStorageFileCopy` +Change output type from CloudFile to AzureStorageFile, the original output will become child property "CloudFile" of the new output + +#### Before +```powershell +PS C:\> $file = Get-AzStorageFile -ShareName $shareName -Path testfile -Context $ctx + +PS C:\> Remove-AzStorageFile -File $file +``` + +#### After +```powershell +PS C:\> $file = Get-AzStorageFile -ShareName $shareName -Path testfile -Context $ctx + +PS C:\> Remove-AzStorageFile -File $file.CloudFile +``` + +### `Get-AzStorageFile`, `New-AzStorageDirectory`, `Remove-AzStorageDirectory` +Change output type from CloudFileDirectory to AzureStorageFileDirectory, the original output will become child property "CloudFileDirectory" of the new output + +#### Before +```powershell +PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx + +PS C:\> Remove-AzStorageDirectory -Directory $dir +``` + +#### After +```powershell +PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx + +PS C:\> Remove-AzStorageDirectory -Directory $dir.CloudFileDirectory +``` + +### `Get-AzStorageShare`, `New-AzStorageShare`, `Remove-AzStorageShare` +Change output type from FileShareProperties to AzureStorageFileShare, the original output will become child property "CloudFileShare" of the new output + +#### Before +```powershell +PS C:\> $share = Get-AzStorageShare -Name $shareName -Context $ctx + +PS C:\> Remove-AzStorageShare -Share $share +``` + +#### After +```powershell +PS C:\> $share = Get-AzStorageShare -Name $shareName -Context $ctx + +PS C:\> Remove-AzStorageShare -Share $share.CloudFileShare +``` + +### `Set-AzStorageShareQuota` +Change output type from FileShareProperties to AzureStorageFileShare, the original output will become sub child property ""CloudFileShare.Properties"" of the new output + +#### Before +```powershell +PS C:\> $shareProperties = Set-AzStorageShareQuota -Name $shareName -Quota 100 -Context $ctx + +PS C:\> $shareProperties + +ETag LastModified Quota +---- ------------ ----- +"0x8D7F5BC7789FC63" 5/11/2020 3:03:30 PM +00:00 100 +``` + +#### After +```powershell +PS C:\> $share = Set-AzStorageShareQuota -Name $shareName -Quota 100 -Context $ctx + +PS C:\> $share + + File End Point: https://weiors1.file.core.windows.net/ + +Name QuotaGiB LastModified IsSnapshot SnapshotTime +---- -------- ------------ ---------- ------------ +weitest1 100 5/11/2020 3:03:30 PM +00:00 False + +PS C:\> $share.CloudFileShare.Properties + +ETag LastModified Quota +---- ------------ ----- +"0x8D7F5BC7789FC63" 5/11/2020 3:03:30 PM +00:00 100 +``` + +### `Remove-AzStorageDirectory` +When removing sub File Directories with parent Directory object and -Path, Can't input -Path from pipeline with type (string) match anymore. + +#### Before +```powershell +PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx + +PS C:\> @('dir1', 'dir2') | Remove-AzStorageDirectory -Directory $dir +``` + +#### After +```powershell +PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx + +PS C:\> $paths = @( + [PSCustomObject]@{ Path = 'dir1 } + [PSCustomObject]@{ Path = 'dir2' } +) + +PS C:\> $paths | Remove-AzStorageDirectory -Directory $dir.CloudFileDirectory +```