From 5a71324243599ac7085880c90b61f0a8bb784c2b Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Fri, 15 May 2020 00:14:35 +0800 Subject: [PATCH 1/6] Migration Guide 4.0 Add script to generate Migration Guide Document Add script to generate Migration Guide Document --- .../Az.4.0.0-migration-guide.md | 638 ++++++++++++++++++ .../MigrationGuide/GenerateMigrationGuide.py | 34 + tools/MigrationGuide/requirements.txt | 2 + 3 files changed, 674 insertions(+) create mode 100644 documentation/migration-guides/Az.4.0.0-migration-guide.md create mode 100644 tools/MigrationGuide/GenerateMigrationGuide.py create mode 100644 tools/MigrationGuide/requirements.txt diff --git a/documentation/migration-guides/Az.4.0.0-migration-guide.md b/documentation/migration-guides/Az.4.0.0-migration-guide.md new file mode 100644 index 000000000000..328d6376e6e7 --- /dev/null +++ b/documentation/migration-guides/Az.4.0.0-migration-guide.md @@ -0,0 +1,638 @@ +# Migration Guide for Az 4.0.0 + +- [Migration Guide for Az 4.0.0](#migration-guide-for-az-400) + - [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"} | fl + +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"} | fl + +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 | fl + +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 | fl + +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 | fl + +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 | fl + +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.Nullable`1[System.Int32]' to 'System.Nullable`1[System.Double]'. + +### `New-AzNetworkWatcherConnectionMonitorTestConfigurationObject` +The generic type for 'parameter SuccessThresholdRoundTripTimeMs' has been changed from 'System.Nullable`1[System.Int32]' to 'System.Nullable`1[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.IList`1[Microsoft.Azure.Management.ResourceManager.Models.AliasType]' to 'System.Collections.Generic.IList`1[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` +Change 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 remove sub File Directorys with parent Diretory 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 +``` diff --git a/tools/MigrationGuide/GenerateMigrationGuide.py b/tools/MigrationGuide/GenerateMigrationGuide.py new file mode 100644 index 000000000000..39aadb70f4a7 --- /dev/null +++ b/tools/MigrationGuide/GenerateMigrationGuide.py @@ -0,0 +1,34 @@ +import openpyxl +from pathlib import Path +import argparse + +ap = argparse.ArgumentParser() +ap.add_argument("-i", "--input", required=True, help="Input Excel File Path") +ap.add_argument("-o", "--output", required=True, help="Output Markdown File Path") +args = vars(ap.parse_args()) + + +xlsx_file = Path(args['input']) +wb_obj = openpyxl.load_workbook(xlsx_file) +sheet = wb_obj.active + + +with open(args['output'], 'w') as f: + f.write('# Migration Guide\n') + current_module_name = "" + row_num = 0 + for row in sheet.iter_rows(max_col=5): + if row_num == 0: + row_num += 1 + continue + module_name, cmdlet_name, desc, before_example, after_example = map(lambda x: x.value, row) + if module_name != current_module_name: + current_module_name = module_name + f.write('\n\n## %s\n' % module_name) + f.write('\n### `%s`\n' % cmdlet_name) + f.write('%s\n' % '\n'.join(map(lambda x: '- ' + x, desc.split('\n')))) + if before_example is not None: + f.write('#### Before\n%s\n' % before_example) + if after_example is not None: + f.write('#### After\n%s\n' % after_example) + row_num += 1 diff --git a/tools/MigrationGuide/requirements.txt b/tools/MigrationGuide/requirements.txt new file mode 100644 index 000000000000..1d44afaf6566 --- /dev/null +++ b/tools/MigrationGuide/requirements.txt @@ -0,0 +1,2 @@ +openpyxl +pathlib \ No newline at end of file From bb699dced52a14d1dffd01469467659a4fd4970c Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Fri, 15 May 2020 17:50:34 +0800 Subject: [PATCH 2/6] Update and rename Az.4.0.0-migration-guide.md to Az.4.1.0-migration-guide.md --- ...z.4.0.0-migration-guide.md => Az.4.1.0-migration-guide.md} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename documentation/migration-guides/{Az.4.0.0-migration-guide.md => Az.4.1.0-migration-guide.md} (99%) diff --git a/documentation/migration-guides/Az.4.0.0-migration-guide.md b/documentation/migration-guides/Az.4.1.0-migration-guide.md similarity index 99% rename from documentation/migration-guides/Az.4.0.0-migration-guide.md rename to documentation/migration-guides/Az.4.1.0-migration-guide.md index 328d6376e6e7..26687bd1c9ee 100644 --- a/documentation/migration-guides/Az.4.0.0-migration-guide.md +++ b/documentation/migration-guides/Az.4.1.0-migration-guide.md @@ -1,6 +1,6 @@ -# Migration Guide for Az 4.0.0 +# Migration Guide for Az 4.1.0 -- [Migration Guide for Az 4.0.0](#migration-guide-for-az-400) +- [Migration Guide for Az 4.1.0](#migration-guide-for-az-410) - [Az.ApiManagement](#azapimanagement) - [`Add-AzApiManagementRegion`](#add-azapimanagementregion) - [`New-AzApiManagement`](#new-azapimanagement) From edef9c8f8a6441f674218191ff16af8293ae852a Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Fri, 15 May 2020 21:39:03 +0800 Subject: [PATCH 3/6] Update markdown and remove tools --- .../Az.4.1.0-migration-guide.md | 206 +++++++++--------- .../MigrationGuide/GenerateMigrationGuide.py | 34 --- tools/MigrationGuide/requirements.txt | 2 - 3 files changed, 104 insertions(+), 138 deletions(-) delete mode 100644 tools/MigrationGuide/GenerateMigrationGuide.py delete mode 100644 tools/MigrationGuide/requirements.txt diff --git a/documentation/migration-guides/Az.4.1.0-migration-guide.md b/documentation/migration-guides/Az.4.1.0-migration-guide.md index 26687bd1c9ee..948b46055a97 100644 --- a/documentation/migration-guides/Az.4.1.0-migration-guide.md +++ b/documentation/migration-guides/Az.4.1.0-migration-guide.md @@ -1,5 +1,7 @@ # 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) @@ -93,66 +95,66 @@ - [`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) + - [`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'. +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. +- 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. +- 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. +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. +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. +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. +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. +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 +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?'. +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'. +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. +- 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. +- 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. +- 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]`. @@ -275,28 +277,28 @@ 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'. +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'. +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'. +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'. +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'. +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'. +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'. +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`. +- 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. @@ -304,37 +306,37 @@ The type of property 'AutomaticRepairsPolicy' of type 'Microsoft.Azure.Commands. - 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'. +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'. +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'. +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'. +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'. +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'. +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'. +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'. +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'. +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'. +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'. +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`. @@ -343,10 +345,10 @@ The type of property 'AutomaticRepairsPolicy' of type 'Microsoft.Azure.Commands. - 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'. +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'. +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 @@ -364,7 +366,7 @@ PS C:\> New-AzKeyVaultCertificateOrganizationDetail -AdministratorDetails $Admin ``` ### `New-AzKeyVaultCertificateAdministratorDetail` -The alias `New-AzKeyVaultCertificateAdministratorDetails` is removed. Please use ``New-AzKeyVaultCertificateAdministratorDetail`. +The alias `New-AzKeyVaultCertificateAdministratorDetails` is removed. Please use `New-AzKeyVaultCertificateAdministratorDetail`. #### Before ```powershell @@ -381,157 +383,157 @@ PS C:\> $AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName #### Before ```powershell -PS C:\> New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' -EnableSoftDelete +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' +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'. +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'. +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. +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.Nullable`1[System.Int32]' to 'System.Nullable`1[System.Double]'. +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.Nullable`1[System.Int32]' to 'System.Nullable`1[System.Double]'. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +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. +- 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. +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. +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'. +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'. +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'. +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. +Parameter `TenantLevel` has been removed. ### `Get-AzPolicyAlias` -The generic type for 'property Aliases' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.ResourceManager.Models.AliasType]' to 'System.Collections.Generic.IList`1[Microsoft.Azure.Management.ResourceManager.Models.Alias]'. +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'. +- 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'. +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` +### `Update-AzStorageAccountNetworkRuleSet`, `Get-AzStorageAccountNetworkRuleSet` Change NetWorkRule DefaultAction value from: Allow = 1, Deny = 0, to: Allow = 0, Deny = 1. -### `New-AzStorageTable, Get-AzStorageTable` +### `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` +### `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 @@ -548,7 +550,7 @@ PS C:\> $file = Get-AzStorageFile -ShareName $shareName -Path testfile -Context PS C:\> Remove-AzStorageFile -File $file.CloudFile ``` -### `Get-AzStorageFile, New-AzStorageDirectory, Remove-AzStorageDirectory` +### `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 @@ -565,7 +567,7 @@ PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $c PS C:\> Remove-AzStorageDirectory -Directory $dir.CloudFileDirectory ``` -### `Get-AzStorageShare, New-AzStorageShare, Remove-AzStorageShare` +### `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 @@ -593,7 +595,7 @@ PS C:\> $shareProperties ETag LastModified Quota ---- ------------ ----- -""0x8D7F5BC7789FC63"" 5/11/2020 3:03:30 PM +00:00 100 +"0x8D7F5BC7789FC63" 5/11/2020 3:03:30 PM +00:00 100 ``` #### After @@ -612,7 +614,7 @@ PS C:\> $share.CloudFileShare.Properties ETag LastModified Quota ---- ------------ ----- -""0x8D7F5BC7789FC63"" 5/11/2020 3:03:30 PM +00:00 100 +"0x8D7F5BC7789FC63" 5/11/2020 3:03:30 PM +00:00 100 ``` ### `Remove-AzStorageDirectory` @@ -622,7 +624,7 @@ When remove sub File Directorys with parent Diretory object and -Path, Can't inp ```powershell PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx -PS C:\> @(""dir1"", ""dir2"") | Remove-AzStorageDirectory -Directory $dir +PS C:\> @("dir1", "dir2") | Remove-AzStorageDirectory -Directory $dir ``` #### After @@ -630,8 +632,8 @@ PS C:\> @(""dir1"", ""dir2"") | Remove-AzStorageDirectory -Directory $dir PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx PS C:\> $paths = @( - [PSCustomObject]@{ Path = ""dir1"" } - [PSCustomObject]@{ Path = ""dir2"" } + [PSCustomObject]@{ Path = "dir1" } + [PSCustomObject]@{ Path = "dir2" } ) PS C:\> $paths | Remove-AzStorageDirectory -Directory $dir.CloudFileDirectory diff --git a/tools/MigrationGuide/GenerateMigrationGuide.py b/tools/MigrationGuide/GenerateMigrationGuide.py deleted file mode 100644 index 39aadb70f4a7..000000000000 --- a/tools/MigrationGuide/GenerateMigrationGuide.py +++ /dev/null @@ -1,34 +0,0 @@ -import openpyxl -from pathlib import Path -import argparse - -ap = argparse.ArgumentParser() -ap.add_argument("-i", "--input", required=True, help="Input Excel File Path") -ap.add_argument("-o", "--output", required=True, help="Output Markdown File Path") -args = vars(ap.parse_args()) - - -xlsx_file = Path(args['input']) -wb_obj = openpyxl.load_workbook(xlsx_file) -sheet = wb_obj.active - - -with open(args['output'], 'w') as f: - f.write('# Migration Guide\n') - current_module_name = "" - row_num = 0 - for row in sheet.iter_rows(max_col=5): - if row_num == 0: - row_num += 1 - continue - module_name, cmdlet_name, desc, before_example, after_example = map(lambda x: x.value, row) - if module_name != current_module_name: - current_module_name = module_name - f.write('\n\n## %s\n' % module_name) - f.write('\n### `%s`\n' % cmdlet_name) - f.write('%s\n' % '\n'.join(map(lambda x: '- ' + x, desc.split('\n')))) - if before_example is not None: - f.write('#### Before\n%s\n' % before_example) - if after_example is not None: - f.write('#### After\n%s\n' % after_example) - row_num += 1 diff --git a/tools/MigrationGuide/requirements.txt b/tools/MigrationGuide/requirements.txt deleted file mode 100644 index 1d44afaf6566..000000000000 --- a/tools/MigrationGuide/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -openpyxl -pathlib \ No newline at end of file From d9c017ade2ac80ac380eaf921aff160fd7f98359 Mon Sep 17 00:00:00 2001 From: "Mike F. Robbins" Date: Fri, 15 May 2020 10:57:33 -0500 Subject: [PATCH 4/6] Update Az.4.1.0-migration-guide.md --- .../migration-guides/Az.4.1.0-migration-guide.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/migration-guides/Az.4.1.0-migration-guide.md b/documentation/migration-guides/Az.4.1.0-migration-guide.md index 948b46055a97..2a2a2230db21 100644 --- a/documentation/migration-guides/Az.4.1.0-migration-guide.md +++ b/documentation/migration-guides/Az.4.1.0-migration-guide.md @@ -162,7 +162,7 @@ The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands. #### Before ```powershell -PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = "val1"} | fl +PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = "val1"} | Format-List ResourceGroupName : $resourceGroupName ProximityPlacementGroupType : Standard @@ -182,7 +182,7 @@ AvailabilitySets : {} #### After ```powershell -PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = "val1"} | fl +PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = "val1"} | Format-List ResourceGroupName : $resourceGroupName ProximityPlacementGroupType : StandardColocationStatus : @@ -202,7 +202,7 @@ AvailabilitySets : {} #### Before ```powershell -PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzProximityPlacementGroup | fl +PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzProximityPlacementGroup | Format-List ResourceGroupName : $resourceGroupName ProximityPlacementGroupType : Standard @@ -222,7 +222,7 @@ AvailabilitySets : {} #### After ```powershell -PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzProximityPlacementGroup | fl +PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzProximityPlacementGroup | Format-List ResourceGroupName : $resourceGroupName ProximityPlacementGroupType : StandardColocationStatus : @@ -262,7 +262,7 @@ AvailabilitySets : {} #### After ```powershell -PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | fl +PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Format-List ResourceGroupName : $resourceGroupName ProximityPlacementGroupType : StandardColocationStatus : From 877aeececcba3d3b66862f9e0c3549d0dab84d90 Mon Sep 17 00:00:00 2001 From: "Mike F. Robbins" Date: Fri, 15 May 2020 11:38:36 -0500 Subject: [PATCH 5/6] Update Az.4.1.0-migration-guide.md --- .../Az.4.1.0-migration-guide.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/documentation/migration-guides/Az.4.1.0-migration-guide.md b/documentation/migration-guides/Az.4.1.0-migration-guide.md index 2a2a2230db21..709cf3498456 100644 --- a/documentation/migration-guides/Az.4.1.0-migration-guide.md +++ b/documentation/migration-guides/Az.4.1.0-migration-guide.md @@ -162,7 +162,7 @@ The type of property `AutomaticRepairsPolicy` of type `Microsoft.Azure.Commands. #### Before ```powershell -PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = "val1"} | Format-List +PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = 'val1'} | Format-List ResourceGroupName : $resourceGroupName ProximityPlacementGroupType : Standard @@ -182,7 +182,7 @@ AvailabilitySets : {} #### After ```powershell -PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = "val1"} | Format-List +PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = 'val1'} | Format-List ResourceGroupName : $resourceGroupName ProximityPlacementGroupType : StandardColocationStatus : @@ -242,7 +242,7 @@ AvailabilitySets : {} #### Before ```powershell -PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | fl +PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Format-List ResourceGroupName : $resourceGroupName ProximityPlacementGroupType : Standard @@ -370,12 +370,12 @@ The alias `New-AzKeyVaultCertificateAdministratorDetails` is removed. Please use #### Before ```powershell -PS C:\> $AdminDetails = New-AzKeyVaultCertificateAdministratorDetails -FirstName "Patti" -LastName "Fuller" -EmailAddress "patti.fuller@contoso.com" -PhoneNumber "5553334444" +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" +PS C:\> $AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName 'Patti' -LastName 'Fuller' -EmailAddress 'patti.fuller@contoso.com' -PhoneNumber '5553334444' ``` ### `New-AzKeyVault` @@ -383,12 +383,12 @@ PS C:\> $AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName #### Before ```powershell -PS C:\> New-AzKeyVault -VaultName `Contoso03Vault` -ResourceGroupName `Group14` -Location `East US` -EnableSoftDelete +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` +PS C:\> New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' ``` ## Az.Monitor @@ -624,7 +624,7 @@ When remove sub File Directorys with parent Diretory object and -Path, Can't inp ```powershell PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx -PS C:\> @("dir1", "dir2") | Remove-AzStorageDirectory -Directory $dir +PS C:\> @('dir1', 'dir2') | Remove-AzStorageDirectory -Directory $dir ``` #### After @@ -632,8 +632,8 @@ PS C:\> @("dir1", "dir2") | Remove-AzStorageDirectory -Directory $dir PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx PS C:\> $paths = @( - [PSCustomObject]@{ Path = "dir1" } - [PSCustomObject]@{ Path = "dir2" } + [PSCustomObject]@{ Path = 'dir1 } + [PSCustomObject]@{ Path = 'dir2' } ) PS C:\> $paths | Remove-AzStorageDirectory -Directory $dir.CloudFileDirectory From 6b76995c63df2cd8e28d0a77db44b6c9bc5c6dcc Mon Sep 17 00:00:00 2001 From: "Mike F. Robbins" Date: Fri, 15 May 2020 13:30:01 -0500 Subject: [PATCH 6/6] Update Az.4.1.0-migration-guide.md --- documentation/migration-guides/Az.4.1.0-migration-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/migration-guides/Az.4.1.0-migration-guide.md b/documentation/migration-guides/Az.4.1.0-migration-guide.md index 709cf3498456..30cc13b1d32a 100644 --- a/documentation/migration-guides/Az.4.1.0-migration-guide.md +++ b/documentation/migration-guides/Az.4.1.0-migration-guide.md @@ -528,7 +528,7 @@ The type of property `Status` of type `Microsoft.Azure.Commands.ResourceManager. ## Az.Storage ### `Update-AzStorageAccountNetworkRuleSet`, `Get-AzStorageAccountNetworkRuleSet` -Change NetWorkRule DefaultAction value from: Allow = 1, Deny = 0, to: Allow = 0, Deny = 1. +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. @@ -618,7 +618,7 @@ ETag LastModified Quota ``` ### `Remove-AzStorageDirectory` -When remove sub File Directorys with parent Diretory object and -Path, Can't input -Path from pipeline with type (string) match anymore. +When removing sub File Directories with parent Directory object and -Path, Can't input -Path from pipeline with type (string) match anymore. #### Before ```powershell