Migreringsguide för Az 4.1.0
I det här dokumentet beskrivs ändringarna mellan 3.0.0 och 4.1.0-versionen av Az.
- Migreringsguide för Az 4.1.0
- Az.ApiManagement
- Az.Batch
- Az.Compute
Remove-AzVmssDiagnosticsExtensionGet-AzVMImageNew-AzVMConfigUpdate-AzVMNew-AzProximityPlacementGroupRemove-AzProximityPlacementGroupGet-AzProximityPlacementGroupAdd-AzVmssAdditionalUnattendContentAdd-AzVmssDataDiskAdd-AzVmssExtensionAdd-AzVmssNetworkInterfaceConfigurationAdd-AzVmssSecretAdd-AzVmssSshPublicKeyAdd-AzVmssWinRMListenerNew-AzVmssConfigRemove-AzVmssDataDiskRemove-AzVmssExtensionRemove-AzVmssNetworkInterfaceConfigurationSet-AzVmssBootDiagnosticSet-AzVmssOsProfileSet-AzVmssRollingUpgradePolicySet-AzVmssStorageProfileNew-AzVmssRepair-AzVmssServiceFabricUpdateDomainGet-AzVmssSet-AzVmssOrchestrationServiceStateUpdate-AzVmssAdd-AzVmssDiagnosticsExtensionDisable-AzVmssDiskEncryption
- Az.KeyVault
- Az.Monitor
- Az.Network
- Az.OperationalInsights
Get-AzOperationalInsightsDataSourceNew-AzOperationalInsightsApplicationInsightsDataSourceNew-AzOperationalInsightsAzureActivityLogDataSourceNew-AzOperationalInsightsCustomLogDataSourceNew-AzOperationalInsightsLinuxPerformanceObjectDataSourceNew-AzOperationalInsightsLinuxSyslogDataSourceNew-AzOperationalInsightsWindowsEventDataSourceNew-AzOperationalInsightsWindowsPerformanceCounterDataSourceRemove-AzOperationalInsightsDataSourceDisable-AzOperationalInsightsIISLogCollectionDisable-AzOperationalInsightsLinuxCustomLogCollectionDisable-AzOperationalInsightsLinuxPerformanceCollectionDisable-AzOperationalInsightsLinuxSyslogCollectionEnable-AzOperationalInsightsIISLogCollectionEnable-AzOperationalInsightsLinuxCustomLogCollectionEnable-AzOperationalInsightsLinuxPerformanceCollectionEnable-AzOperationalInsightsLinuxSyslogCollectionGet-AzOperationalInsightsSavedSearchGet-AzOperationalInsightsSavedSearchResultGet-AzOperationalInsightsSearchResultGet-AzOperationalInsightsStorageInsightNew-AzOperationalInsightsStorageInsightRemove-AzOperationalInsightsStorageInsightSet-AzOperationalInsightsStorageInsightGet-AzOperationalInsightsLinkTargetGet-AzOperationalInsightsWorkspaceNew-AzOperationalInsightsWorkspaceSet-AzOperationalInsightsWorkspaceInvoke-AzOperationalInsightsQuery
- Az.Resources
- Az.Storage
Update-AzStorageAccountNetworkRuleSet,Get-AzStorageAccountNetworkRuleSetNew-AzStorageTable,Get-AzStorageTableGet-AzStorageFile,Remove-AzStorageFile,Get-AzStorageFileContent,Set-AzStorageFileContent,Start-AzStorageFileCopyGet-AzStorageFile,New-AzStorageDirectory,Remove-AzStorageDirectoryGet-AzStorageShare,New-AzStorageShare,Remove-AzStorageShareSet-AzStorageShareQuotaRemove-AzStorageDirectory
Az.ApiManagement
Add-AzApiManagementRegion
Typen av Type typegenskap Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementServiceIdentity har ändrats från Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementServiceIdentityType till System.String .
New-AzApiManagement
- Cmdleten
New-AzApiManagementstöder inte längre parametern och detAssignIdentityhittades inget alias för det ursprungliga parameternamnet. - Parameteruppsättningen
__AllParameterSetsför cmdletNew-AzApiManagementhar tagits bort.
Set-AzApiManagement
- Cmdleten
Set-AzApiManagementstöder inte längre parametern och detAssignIdentityhittades inget alias för det ursprungliga parameternamnet. - Parameteruppsättningen
__AllParameterSetsför cmdletSet-AzApiManagementhar tagits bort.
Get-AzApiManagementProperty
Cmdleten Get-AzApiManagementProperty har ersatts av Get-AzApiManagementNamedValue .
New-AzApiManagementProperty
Cmdleten New-AzApiManagementProperty har ersatts av New-AzApiManagementNamedValue .
Remove-AzApiManagementProperty
Cmdleten Remove-AzApiManagementProperty har ersatts av Remove-AzApiManagementNamedValue .
Set-AzApiManagementProperty
Cmdleten Set-AzApiManagementProperty har ersatts av Set-AzApiManagementNamedValue .
Az.Batch
Get-AzBatchApplication, New-AzBatchApplication
Egenskapen ApplicationPackages för typen Microsoft.Azure.Commands.Batch.Models.PSApplication har tagits bort.
Get-AzBatchComputeNode, New-AzBatchPool
Egenskapen PublicIPs för typ Microsoft.Azure.Commands.Batch.Models.PSNetworkConfiguration har tagits bort
Get-AzBatchApplicationPackage, New-AzBatchApplicationPackage
Typen av StorageUrlExpiry typegenskap Microsoft.Azure.Commands.Batch.Models.PSApplicationPackage har ändrats från System.DateTime till System.DateTime? .
Az.Compute
Remove-AzVmssDiagnosticsExtension
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Get-AzVMImage
- Cmdleten
Get-AzVMImagestöder inte längre parametern och detFilterExpressionhittades inget alias för det ursprungliga parameternamnet. - Parameteruppsättningen
ListVMImageför cmdletGet-AzVMImagehar tagits bort.
New-AzVMConfig
- Cmdleten
New-AzVMConfigstöder inte längre parametern och detAssignIdentityhittades inget alias för det ursprungliga parameternamnet. - Parameteruppsättningen
AssignIdentityParameterSetför cmdletNew-AzVMConfighar tagits bort.
Update-AzVM
- Cmdleten
Update-AzVMstöder inte längre parametern och detAssignIdentityhittades inget alias för det ursprungliga parameternamnet. - Parameteruppsättningen
AssignIdentityParameterSetför cmdletUpdate-AzVMhar tagits bort.
New-AzProximityPlacementGroup
- Allmän typ för egenskap
VirtualMachinesVirtualMachineScaleSets, och harAvailabilitySetsändrats från tillSystem.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResource]System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResourceWithColocationStatus]. - Egenskapen
VirtualMachinesColocationStatus,VirtualMachineScaleSetsColocationStatusoch av typen harAvailabilitySetsColocationStatustagitsMicrosoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroupbort.
Före
PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = 'val1'} | Format-List
ResourceGroupName : $resourceGroupName
ProximityPlacementGroupType : Standard
VirtualMachinesColocationStatus : {}
VirtualMachineScaleSetsColocationStatus : {}
AvailabilitySetsColocationStatus : {}
ColocationStatus :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName
Name : $proximityPlacementGroupName
Type : Microsoft.Compute/proximityPlacementGroups
Location : $location
Tags : {[key1, val1]}
VirtualMachines : {}
VirtualMachineScaleSets : {}
AvailabilitySets : {}
Efter
PS C:\> New-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = 'val1'} | Format-List
ResourceGroupName : $resourceGroupName
ProximityPlacementGroupType : StandardColocationStatus :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName
Name : $proximityPlacementGroupName
Type : Microsoft.Compute/proximityPlacementGroups
Location : $location
Tags : {[key1, val1]}
VirtualMachines : {}
VirtualMachineScaleSets : {}
AvailabilitySets : {}
Remove-AzProximityPlacementGroup
- Allmän typ för egenskap
VirtualMachinesVirtualMachineScaleSets, och harAvailabilitySetsändrats från tillSystem.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResource]System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResourceWithColocationStatus]. - Egenskapen
VirtualMachinesColocationStatus,VirtualMachineScaleSetsColocationStatusoch av typen harAvailabilitySetsColocationStatustagitsMicrosoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroupbort.
Före
PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzProximityPlacementGroup | Format-List
ResourceGroupName : $resourceGroupName
ProximityPlacementGroupType : Standard
VirtualMachinesColocationStatus : {}
VirtualMachineScaleSetsColocationStatus : {}
AvailabilitySetsColocationStatus : {}
ColocationStatus :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName
Name : $proximityPlacementGroupName
Type : Microsoft.Compute/proximityPlacementGroups
Location : $location
Tags : {[key1, val1]}
VirtualMachines : {}
VirtualMachineScaleSets : {}
AvailabilitySets : {}
Efter
PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzProximityPlacementGroup | Format-List
ResourceGroupName : $resourceGroupName
ProximityPlacementGroupType : StandardColocationStatus :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName
Name : $proximityPlacementGroupName
Type : Microsoft.Compute/proximityPlacementGroups
Location : $location
Tags : {[key1, val1]}
VirtualMachines : {}
VirtualMachineScaleSets : {}
AvailabilitySets : {}
Get-AzProximityPlacementGroup
- Allmän typ för egenskap
VirtualMachinesVirtualMachineScaleSets, och harAvailabilitySetsändrats från tillSystem.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResource]System.Collections.Generic.IList1[Microsoft.Azure.Management.Compute.Models.SubResourceWithColocationStatus]. - Egenskapen
VirtualMachinesColocationStatus,VirtualMachineScaleSetsColocationStatusoch av typen harAvailabilitySetsColocationStatustagitsMicrosoft.Azure.Commands.Compute.Automation.Models.PSProximityPlacementGroupbort.
Före
PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Format-List
ResourceGroupName : $resourceGroupName
ProximityPlacementGroupType : Standard
VirtualMachinesColocationStatus : {}
VirtualMachineScaleSetsColocationStatus : {}
AvailabilitySetsColocationStatus : {}
ColocationStatus :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName
Name : $proximityPlacementGroupName
Type : Microsoft.Compute/proximityPlacementGroups
Location : $location
Tags : {[key1, val1]}
VirtualMachines : {}
VirtualMachineScaleSets : {}
AvailabilitySets : {}
Efter
PS C:\> Get-AzProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Format-List
ResourceGroupName : $resourceGroupName
ProximityPlacementGroupType : StandardColocationStatus :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/proximityPlacementGroups/$proximityPlacementGroupName
Name : $proximityPlacementGroupName
Type : Microsoft.Compute/proximityPlacementGroups
Location : $location
Tags : {[key1, val1]}
VirtualMachines : {}
VirtualMachineScaleSets : {}
AvailabilitySets : {}
Add-AzVmssAdditionalUnattendContent
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Add-AzVmssDataDisk
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Add-AzVmssExtension
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Add-AzVmssNetworkInterfaceConfiguration
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Add-AzVmssSecret
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Add-AzVmssSshPublicKey
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Add-AzVmssWinRMListener
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
New-AzVmssConfig
- Typen av
AutomaticRepairsPolicytypegenskapMicrosoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSethar ändrats frånMicrosoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicytillMicrosoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy. - Parametern stöds inte längre
AutomaticRepairMaxInstanceRepairsPercentoch det hittades inget alias för det ursprungliga parameternamnet. - Parametern stöds inte längre
AssignIdentityoch det hittades inget alias för det ursprungliga parameternamnet. - Parameteruppsättningen
__AllParameterSetshar tagits bort. - Parameteruppsättningen
ExplicitIdentityParameterSethar tagits bort. - Parameteruppsättningen
AssignIdentityParameterSethar tagits bort.
Remove-AzVmssDataDisk
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Remove-AzVmssExtension
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Remove-AzVmssNetworkInterfaceConfiguration
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Set-AzVmssBootDiagnostic
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Set-AzVmssOsProfile
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Set-AzVmssRollingUpgradePolicy
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Set-AzVmssStorageProfile
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
New-AzVmss
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Repair-AzVmssServiceFabricUpdateDomain
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Get-AzVmss
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Set-AzVmssOrchestrationServiceState
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Update-AzVmss
- Typen av
AutomaticRepairsPolicytypegenskapMicrosoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSethar ändrats frånMicrosoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicytillMicrosoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy. - Parametern stöds inte längre
AutomaticRepairMaxInstanceRepairsPercentoch det hittades inget alias för det ursprungliga parameternamnet. - Parameteruppsättningen
__AllParameterSetshar tagits bort. - Parameteruppsättningen
ExplicitIdentityParameterSethar tagits bort.
Add-AzVmssDiagnosticsExtension
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Disable-AzVmssDiskEncryption
Typen av AutomaticRepairsPolicy typegenskap Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet har ändrats från Microsoft.Azure.Commands.Compute.Automation.Models.PSAutomaticRepairsPolicy till Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy .
Az.KeyVault
New-AzKeyVaultCertificateOrganizationDetail
Aliaset New-AzKeyVaultCertificateOrganizationDetails tas bort. Använd New-AzKeyVaultCertificateOrganizationDetail .
Före
PS C:\> New-AzKeyVaultCertificateOrganizationDetails -AdministratorDetails $AdminDetails
Efter
PS C:\> New-AzKeyVaultCertificateOrganizationDetail -AdministratorDetails $AdminDetails
New-AzKeyVaultCertificateAdministratorDetail
Aliaset New-AzKeyVaultCertificateAdministratorDetails tas bort. Använd New-AzKeyVaultCertificateAdministratorDetail .
Före
PS C:\> $AdminDetails = New-AzKeyVaultCertificateAdministratorDetails -FirstName 'Patti' -LastName 'Fuller' -EmailAddress 'patti.fuller@contoso.com' -PhoneNumber '5553334444'
Efter
PS C:\> $AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName 'Patti' -LastName 'Fuller' -EmailAddress 'patti.fuller@contoso.com' -PhoneNumber '5553334444'
New-AzKeyVault
-EnableSoftDelete tas bort eftersom mjuk borttagning är aktiverat som standard. Använd den -DisableSoftDelete här funktionen om du inte vill ha den här funktionen.
Före
PS C:\> New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US' -EnableSoftDelete
Efter
PS C:\> New-AzKeyVault -VaultName 'Contoso03Vault' -ResourceGroupName 'Group14' -Location 'East US'
Az.Monitor
Add-AzLogProfile
Typen av RetentionPolicy typegenskap Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile har ändrats från Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy till Microsoft.Azure.Management.Monitor.Models.RetentionPolicy .
Get-AzLogProfile
Typen av RetentionPolicy typegenskap Microsoft.Azure.Commands.Insights.OutputClasses.PSLogProfile har ändrats från Microsoft.Azure.Management.Monitor.Management.Models.RetentionPolicy till Microsoft.Azure.Management.Monitor.Models.RetentionPolicy .
New-AzMetricAlertRuleV2Criteria
Parameteruppsättningen __AllParameterSets för cmdlet New-AzMetricAlertRuleV2Criteria har tagits bort.
Az.Network
Get-AzNetworkWatcherConnectionMonitor
Den allmänna typen för egenskap RoundTripTimeMs har ändrats från System.Nullable1[System.Int32] till System.Nullable1[System.Double] .
New-AzNetworkWatcherConnectionMonitorTestConfigurationObject
Allmän typ för parameter SuccessThresholdRoundTripTimeMs har ändrats från System.Nullable1[System.Int32] till System.Nullable1[System.Double] .
Az.OperationalInsights
Get-AzOperationalInsightsDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsApplicationInsightsDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsAzureActivityLogDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsCustomLogDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsLinuxPerformanceObjectDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsLinuxSyslogDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsWindowsEventDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsWindowsPerformanceCounterDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Remove-AzOperationalInsightsDataSource
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Disable-AzOperationalInsightsIISLogCollection
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Disable-AzOperationalInsightsLinuxCustomLogCollection
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Disable-AzOperationalInsightsLinuxPerformanceCollection
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Disable-AzOperationalInsightsLinuxSyslogCollection
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Enable-AzOperationalInsightsIISLogCollection
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Enable-AzOperationalInsightsLinuxCustomLogCollection
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Enable-AzOperationalInsightsLinuxPerformanceCollection
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Enable-AzOperationalInsightsLinuxSyslogCollection
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Get-AzOperationalInsightsSavedSearch
Egenskapen Metadata för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSSearchListSavedSearchResponse har tagits bort.
Get-AzOperationalInsightsSavedSearchResult
Cmdleten Get-AzOperationalInsightsSavedSearchResult stöds inte längre av SDK och har tagits bort.
Get-AzOperationalInsightsSearchResult
Cmdleten Get-AzOperationalInsightsSearchResult stöds inte längre av SDK och har tagits bort.
Get-AzOperationalInsightsStorageInsight
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsStorageInsight
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Remove-AzOperationalInsightsStorageInsight
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Set-AzOperationalInsightsStorageInsight
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Get-AzOperationalInsightsLinkTarget
Cmdleten Get-AzOperationalInsightsLinkTarget stöds inte längre av SDK och har tagits bort.
Get-AzOperationalInsightsWorkspace
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
New-AzOperationalInsightsWorkspace
- Egenskapen
PortalUrlför typenMicrosoft.Azure.Commands.OperationalInsights.Models.PSWorkspacehar tagits bort. - Cmdleten
New-AzOperationalInsightsWorkspacestöder inte längre parametern och detCustomerIdhittades inget alias för det ursprungliga parameternamnet. - Parameteruppsättningen
__AllParameterSetsför cmdletNew-AzOperationalInsightsWorkspacehar tagits bort.
Set-AzOperationalInsightsWorkspace
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Invoke-AzOperationalInsightsQuery
Egenskapen PortalUrl för typen Microsoft.Azure.Commands.OperationalInsights.Models.PSWorkspace har tagits bort.
Az.Resources
Get-AzDeploymentScript
Typen av Status typegenskap Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript har ändrats från Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus till Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus .
Get-AzDeploymentScriptLog
Typen av Status typegenskap Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript har ändrats från Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus till Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus .
Save-AzDeploymentScriptLog
Typen av Status typegenskap Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript har ändrats från Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus till Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus .
Get-AzResourceLock, New-AzResourceLock, Remove-AzResourceLock, Set-AzResourceLock
Parametern TenantLevel har tagits bort.
Get-AzPolicyAlias
Den allmänna typen för egenskap Aliases har ändrats från System.Collections.Generic.IList1[Microsoft.Azure.Management.ResourceManager.Models.AliasType] till System.Collections.Generic.IList1[Microsoft.Azure.Management.ResourceManager.Models.Alias] .
New-AzPolicyAssignment
- Cmdleten
New-AzPolicyAssignmentstöder inte längreSystem.Management.Automation.PSObjectparametertypenPolicyDefinition. - Cmdleten
New-AzPolicyAssignmentstöder inte längreSystem.Management.Automation.PSObjectparametertypenPolicySetDefinition.
Remove-AzDeploymentScript
Typen av Status typegenskap Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsDeploymentScript har ändrats från Microsoft.Azure.Management.ResourceManager.Models.ScriptStatus till Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PsScriptStatus .
Az.Storage
Update-AzStorageAccountNetworkRuleSet, Get-AzStorageAccountNetworkRuleSet
Ändrad NetWorkRule DefaultAction-värde från: Tillåt = 1, Neka = 0, till: Tillåt = 0, Neka = 1.
New-AzStorageTable, Get-AzStorageTable
Utdataobjektet AzureStorageTable.CloudTable.ServiceClient har två egenskaper borttagna: ConnectionPolicy, ConsistencyLevel.
Get-AzStorageFile, Remove-AzStorageFile, Get-AzStorageFileContent, Set-AzStorageFileContent, Start-AzStorageFileCopy
Ändra utdatatyp från CloudFile till AzureStorageFile, kommer de ursprungliga utdata att bli underegenskapen "CloudFile" av de nya utdata
Före
PS C:\> $file = Get-AzStorageFile -ShareName $shareName -Path testfile -Context $ctx
PS C:\> Remove-AzStorageFile -File $file
Efter
PS C:\> $file = Get-AzStorageFile -ShareName $shareName -Path testfile -Context $ctx
PS C:\> Remove-AzStorageFile -File $file.CloudFile
Get-AzStorageFile, New-AzStorageDirectory, Remove-AzStorageDirectory
Ändra utdatatyp från CloudFileDirectory till AzureStorageFileDirectory, de ursprungliga utdata blir underordnade egenskapen "CloudFileDirectory" för de nya utdata
Före
PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx
PS C:\> Remove-AzStorageDirectory -Directory $dir
Efter
PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx
PS C:\> Remove-AzStorageDirectory -Directory $dir.CloudFileDirectory
Get-AzStorageShare, New-AzStorageShare, Remove-AzStorageShare
Ändra utdatatyp från FileShareProperties till AzureStorageFileShare, kommer de ursprungliga utdata att bli underordnade egenskapen "CloudFileShare" av de nya utdata
Före
PS C:\> $share = Get-AzStorageShare -Name $shareName -Context $ctx
PS C:\> Remove-AzStorageShare -Share $share
Efter
PS C:\> $share = Get-AzStorageShare -Name $shareName -Context $ctx
PS C:\> Remove-AzStorageShare -Share $share.CloudFileShare
Set-AzStorageShareQuota
Ändra utdatatyp från FileShareProperties till AzureStorageFileShare blir de ursprungliga utdata underunderegenskapen "CloudFileShare.Properties"" för de nya utdata
Före
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
Efter
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
När du tar bort underkataloger med överordnat katalogobjekt och -Sökväg matchar inte längre indata -Path från pipeline med typ (sträng).
Före
PS C:\> $dir = Get-AzStorageFile -ShareName $shareName -Path testdir -Context $ctx
PS C:\> @('dir1', 'dir2') | Remove-AzStorageDirectory -Directory $dir
Efter
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