Azure / Azure/azure-powershell

[AzureStack] Outdated parameter that doesn't work for New-AzAvailabilitySet

Open
#13,058 6 comments 0 reactions 0 assignees View on GitHub
Azure Stack bug Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

## Description

Outdated parameter "-Managed" that doesn't work anymore for New-AzAvailabilitySet still listed when running the following code. It should be removed since it doesn't work.

```powershell
PS C:\Users\weshi1> (gcm New-AzAvailabilitySet).Parameters

Key Value
--- -----
ResourceGroupName System.Management.Automation.ParameterMetadata
Name System.Management.Automation.ParameterMetadata
Location System.Management.Automation.ParameterMetadata
PlatformUpdateDomainCount System.Management.Automation.ParameterMetadata
PlatformFaultDomainCount System.Management.Automation.ParameterMetadata
Sku System.Management.Automation.ParameterMetadata
Managed System.Management.Automation.ParameterMetadata
AsJob System.Management.Automation.ParameterMetadata
DefaultProfile System.Management.Automation.ParameterMetadata
Verbose System.Management.Automation.ParameterMetadata
Debug System.Management.Automation.ParameterMetadata
ErrorAction System.Management.Automation.ParameterMetadata
WarningAction System.Management.Automation.ParameterMetadata
InformationAction System.Management.Automation.ParameterMetadata
ErrorVariable System.Management.Automation.ParameterMetadata
WarningVariable System.Management.Automation.ParameterMetadata
InformationVariable System.Management.Automation.ParameterMetadata
OutVariable System.Management.Automation.ParameterMetadata
OutBuffer System.Management.Automation.ParameterMetadata
PipelineVariable System.Management.Automation.ParameterMetadata

```

## Steps to reproduce

```powershell
PS C:\Users\weshi1> New-AzAvailabilitySet -ResourceGroupName weirg -Name "avail-set-0" -Location northwest -Managed
WARNING: Parameter 'Managed' is obsolete. This parameter is obsolete. Please use Sku parameter instead.

ResourceGroupName : weirg
Id : /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/weirg/providers/Microsoft.Compute/availabilitySets/avail-
set-0
Name : avail-set-0
Type : Microsoft.Compute/availabilitySets
Location : northwest
Managed : False
Sku : Classic
Tags : {}
PlatformFaultDomainCount : 3
PlatformUpdateDomainCount : 5
Statuses : []
VirtualMachinesReferences : []

```

## Environment data
```
PS C:\Users\weshi1> $PSVersionTable

Name Value
---- -----
PSVersion 7.0.3
PSEdition Core
GitCommitId 7.0.3
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

## Module versions

```powershell
PS C:\Users\weshi1> (Get-Module -ListAvailable)

Directory: C:\Users\weshi1\Documents\PowerShell\Modules

ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 0.10.0 preview Az Core,Desk
Script 2.0.1 preview Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataColle…
Script 0.10.0 preview Az.Billing Core,Desk Get-UsageAggregates
Script 0.10.0 preview Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet,…
Script 1.1.0 Az.DataBoxEdge Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevi…
Script 0.10.0 preview Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-A…
Script 1.4.3 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespa…
Script 0.10.0 preview Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnect…
Script 0.10.0 preview Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Set-AzKeyVaultCertificateAttribute, Stop-AzK…
Script 1.6.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogPro…
Script 0.10.0 preview Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGat…
Script 0.10.0 preview Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment,…
Script 0.10.0 preview Az.Storage Core,Desk {Get-AzStorageTableStoredAccessPolicy, Get-AzStorageTable, New-AzStorage…
Script 0.10.0 preview Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remov…
Script 0.9.0 preview Azs.Azurebridge.Admin Core,Desk {Get-AzsAzureBridgeActivation, Get-AzsAzureBridgeDownloadedProduct, Get-…
Script 0.9.0 preview Azs.Backup.Admin Core,Desk {Get-AzsBackup, Get-AzsBackupConfiguration, Restore-AzsBackup, Set-AzsBa…
Script 0.9.0 preview Azs.Commerce.Admin Core,Desk Get-AzsSubscriberUsage
Script 0.9.0 preview Azs.Compute.Admin Core,Desk {Add-AzsPlatformImage, Add-AzsVMExtension, Get-AzsComputeQuota, Get-AzsD…
Script 0.9.0 preview Azs.Deployment.Admin Core,Desk {Invoke-AzsProductRemoveAction, Get-AzsProductDeployment, Set-AzsProduct…
Script 0.9.0 preview Azs.Fabric.Admin Core,Desk {Add-AzsScaleUnitNode, Disable-AzsScaleUnitNode, Enable-AzsScaleUnitNode…
Script 0.9.0 preview Azs.Gallery.Admin Core,Desk {Add-AzsGalleryItem, Get-AzsGalleryItem, Remove-AzsGalleryItem}
Script 0.9.0 preview Azs.Infrastructureinsights.Admin Core,Desk {Close-AzsAlert, Get-AzsAlert, Get-AzsRegionHealth, Get-AzsRegistrationH…
Script 0.9.0 preview Azs.Keyvault.Admin Core,Desk Get-AzsKeyvaultQuota
Script 0.9.0 preview Azs.Network.Admin Core,Desk {Get-AzsLoadBalancer, Get-AzsNetworkAdminOverview, Get-AzsNetworkQuota, …
Script 0.9.0 preview Azs.Storage.Admin Core,Desk {Get-AzsStorageAccount, Get-AzsStorageAcquisition, Get-AzsStorageQuota, …
Script 0.9.0 preview Azs.Subscriptions Core,Desk {Get-AzsDelegatedProviderOffer, Get-AzsOffer, Get-AzsSubscription, New-A…
Script 0.9.0 preview Azs.Subscriptions.Admin Core,Desk {Add-AzsPlanToOffer, Get-AzsAcquiredPlan, Get-AzsAdminManagedOffer, Get-…
Script 0.9.0 preview Azs.Update.Admin Core,Desk {Get-AzsUpdate, Get-AzsUpdateLocation, Get-AzsUpdateRun, Install-AzsUpda…
Script 2.0.0 preview AzureStack Core,Desk
Script 1.0.0.8 DockerMsftProvider Desk
Script 4.6.0 Pester Desk {Describe, Context, It, Should…}

Directory: C:\program files\powershell\7\Modules

ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Manifest 7.0.0.0 CimCmdlets Core {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSessio…
Manifest 1.2.5 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive}
Manifest 7.0.0.0 Microsoft.PowerShell.Diagnostics Core {Get-WinEvent, New-WinEvent, Get-Counter}
Manifest 7.0.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop-Transcript}
Manifest 7.0.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Content, Get-Clipboard, Set-Clipboard…}
Manifest 7.0.0.0 Microsoft.PowerShell.Security Core {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential…}
Manifest 7.0.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, New-Alias…}
Manifest 7.0.0.0 Microsoft.WSMan.Management Core {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQ…
Script 1.4.7 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script 2.2.4.1 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script 2.0.5 PSDesiredStateConfiguration Core {Configuration, New-DscChecksum, Get-DscResource, Invoke-DscResource}
Script 7.0.0.0 PSDiagnostics Core {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enab…
Script 2.0.2 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKe…
Binary 2.0.3 ThreadJob Desk Start-ThreadJob

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 0.1.0 preview Az.BootStrapper Core,Desk {Update-AzProfile, Uninstall-AzProfile, Install-AzProfile, Use-AzProfile…
Script 5.1.2 Azure Desk {Get-AzureAutomationCertificate, Get-AzureAutomationConnection, New-Azur…
Manifest 0.5.0 Azure.AnalysisServices Desk {Add-AzureAnalysisServicesAccount, Restart-AzureAnalysisServicesInstance…
Script 4.2.1 Azure.Storage Desk {Get-AzureStorageTable, New-AzureStorageTableSASToken, New-AzureStorageT…
Script 5.7.0 AzureRM Desk
Script 0.6.6 AzureRM.AnalysisServices Desk {Resume-AzureRmAnalysisServicesServer, Suspend-AzureRmAnalysisServicesSe…
Script 5.1.2 AzureRM.ApiManagement Desk {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken, New-A…
Script 0.1.3 AzureRM.ApplicationInsights Desk {Get-AzureRmApplicationInsights, New-AzureRmApplicationInsights, Remove-…
Script 4.3.2 AzureRM.Automation Desk {Get-AzureRMAutomationHybridWorkerGroup, Get-AzureRmAutomationJobOutputR…
Script 4.0.4 AzureRM.Backup Desk {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistration, …
Script 4.0.6 AzureRM.Batch Desk {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-AzureRmBatchAc…
Script 0.14.1 AzureRM.Billing Desk {Get-AzureRmBillingInvoice, Get-AzureRmBillingPeriod, Get-AzureRmEnrollm…
Script 4.2.2 AzureRM.Cdn Desk {Get-AzureRmCdnProfile, Get-AzureRmCdnProfileSsoUrl, New-AzureRmCdnProfi…
Script 0.9.4 AzureRM.CognitiveServices Desk {Get-AzureRmCognitiveServicesAccount, Get-AzureRmCognitiveServicesAccoun…
Script 4.6.0 AzureRM.Compute Desk {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmA…
Script 0.3.1 AzureRM.Consumption Desk Get-AzureRmConsumptionUsageDetail
Script 0.2.5 AzureRM.ContainerInstance Desk {New-AzureRmContainerGroup, Get-AzureRmContainerGroup, Remove-AzureRmCon…
Script 1.0.4 AzureRM.ContainerRegistry Desk {New-AzureRmContainerRegistry, Get-AzureRmContainerRegistry, Update-Azur…
Script 4.2.2 AzureRM.DataFactories Desk {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-AzureRmDataFa…
Script 0.5.3 AzureRM.DataFactoryV2 Desk {Set-AzureRmDataFactoryV2, Update-AzureRmDataFactoryV2, Get-AzureRmDataF…
Script 4.2.3 AzureRM.DataLakeAnalytics Desk {Get-AzureRmDataLakeAnalyticsDataSource, New-AzureRmDataLakeAnalyticsCat…
Script 5.2.0 AzureRM.DataLakeStore Desk {Get-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureRmDataLakeStoreT…
Script 4.0.4 AzureRM.DevTestLabs Desk {Get-AzureRmDtlAllowedVMSizesPolicy, Get-AzureRmDtlAutoShutdownPolicy, G…
Script 4.1.2 AzureRM.Dns Desk {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsR…
Script 0.3.2 AzureRM.EventGrid Desk {New-AzureRmEventGridTopic, Get-AzureRmEventGridTopic, Set-AzureRmEventG…
Script 0.6.3 AzureRM.EventHub Desk {New-AzureRmEventHubNamespace, Get-AzureRmEventHubNamespace, Set-AzureRm…
Script 4.1.2 AzureRM.HDInsight Desk {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoopJobDefinition, Wait-A…
Script 4.0.4 AzureRM.Insights Desk {Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-AzureRmLogProfil…
Script 3.1.2 AzureRM.IotHub Desk {Add-AzureRmIotHubKey, Get-AzureRmIotHubEventHubConsumerGroup, Get-Azure…
Script 4.3.0 AzureRM.KeyVault Desk {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificateAttribute, St…
Script 4.0.3 AzureRM.LogicApp Desk {Get-AzureRmIntegrationAccountAgreement, Get-AzureRmIntegrationAccountCa…
Script 0.17.2 AzureRM.MachineLearning Desk {Move-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentAssociation…
Script 0.4.2 AzureRM.MachineLearningCompute Desk {Get-AzureRmMlOpCluster, Get-AzureRmMlOpClusterKey, Test-AzureRmMlOpClus…
Script 0.2.1 AzureRM.MarketplaceOrdering Desk {Get-AzureRmMarketplaceTerms, Set-AzureRmMarketplaceTerms}
Script 0.9.2 AzureRM.Media Desk {Sync-AzureRmMediaServiceStorageKeys, Set-AzureRmMediaServiceKey, Get-Az…
Script 5.4.2 AzureRM.Network Desk {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmAppl…
Script 4.1.1 AzureRM.NotificationHubs Desk {Get-AzureRmNotificationHub, Get-AzureRmNotificationHubAuthorizationRule…
Script 4.3.2 AzureRM.OperationalInsights Desk {New-AzureRmOperationalInsightsAzureActivityLogDataSource, New-AzureRmOp…
Script 4.1.4 AzureRM.PowerBIEmbedded Desk {Remove-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWorkspaceCo…
Script 4.6.0 AzureRM.Profile Desk {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-A…
Script 4.1.2 AzureRM.RecoveryServices Desk {Get-AzureRmRecoveryServicesBackupProperty, Get-AzureRmRecoveryServicesV…
Script 4.1.2 AzureRM.RecoveryServices.Backup Desk {Backup-AzureRmRecoveryServicesBackupItem, Get-AzureRmRecoveryServicesBa…
Script 0.2.4 AzureRM.RecoveryServices.SiteRecov… Desk {Edit-AzureRmRecoveryServicesAsrRecoveryPlan, Get-AzureRmRecoveryService…
Script 4.1.2 AzureRM.RedisCache Desk {Remove-AzureRmRedisCachePatchSchedule, New-AzureRmRedisCacheScheduleEnt…
Script 0.3.3 AzureRM.Relay Desk {New-AzureRmRelayNamespace, Get-AzureRmRelayNamespace, Set-AzureRmRelayN…
Script 5.5.2 AzureRM.Resources Desk {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRm…
Script 0.16.3 AzureRM.Scheduler Desk {Disable-AzureRmSchedulerJobCollection, Enable-AzureRmSchedulerJobCollec…
Script 4.1.2 AzureRM.ServerManagement Desk {Invoke-AzureRmServerManagementPowerShellCommand, Get-AzureRmServerManag…
Script 0.6.4 AzureRM.ServiceBus Desk {New-AzureRmServiceBusNamespace, Get-AzureRmServiceBusNamespace, Set-Azu…
Script 0.3.4 AzureRM.ServiceFabric Desk {Add-AzureRmServiceFabricApplicationCertificate, Add-AzureRmServiceFabri…
Script 5.0.6 AzureRM.SiteRecovery Desk {Get-AzureRmSiteRecoveryFabric, New-AzureRmSiteRecoveryFabric, Remove-Az…
Script 4.4.0 AzureRM.Sql Desk {Get-AzureRmSqlDatabaseTransparentDataEncryption, Get-AzureRmSqlDatabase…
Script 4.2.3 AzureRM.Storage Desk {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmSto…
Script 4.0.4 AzureRM.StreamAnalytics Desk {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmStreamAnalyticsDefaultFu…
Script 4.0.1 AzureRM.Tags Desk {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}
Script 4.0.3 AzureRM.TrafficManager Desk {Disable-AzureRmTrafficManagerEndpoint, Enable-AzureRmTrafficManagerEndp…
Script 4.0.2 AzureRM.UsageAggregates Desk Get-UsageAggregates
Script 4.2.2 AzureRM.Websites Desk {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppSer…
Script 1.0.1 Microsoft.PowerShell.Operation.Val… Desk {Get-OperationValidation, Invoke-OperationValidation}
Script 1.4.6 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Binary 1.0.0.1 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script 3.4.0 Pester Desk {Describe, Context, It, Should…}
Script 2.2.1 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script 1.0.0.1 PowerShellGet Desk {Install-Module, Find-Module, Save-Module, Update-Module…}
Script 2.0.0 beta2 PSReadline Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKe…

Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Manifest 1.0.0.0 AppBackgroundTask Core,Desk {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnos…
Manifest 2.0.1.0 Appx Core,Desk {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxP…
Script 1.0.0.0 AssignedAccess Core,Desk {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}
Manifest 1.0.0.0 BitLocker Core,Desk {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLocker…
Manifest 2.0.0.0 BitsTransfer Core,Desk {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTrans…
Manifest 1.0.0.0 BranchCache Core,Desk {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrad…
Manifest 1.0 ConfigDefender Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreferen…
Manifest 1.0 Defender Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreferen…
Manifest 1.0.2.0 DeliveryOptimization Core,Desk {Delete-DeliveryOptimizationCache, Set-DeliveryOptimizationStatus, Get-D…
Manifest 1.0.0.0 DirectAccessClientComponents Core,Desk {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection…
Script 3.0 Dism Core,Desk {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, A…
Manifest 1.0.0.0 DnsClient Core,Desk {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCach…
Manifest 1.0.0.0 EventTracingManagement Core,Desk {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update…
Manifest 1.0.0.0 HgsClient Core,Desk {Get-HgsAttestationBaselinePolicy, Get-HgsClientConfiguration, Test-HgsC…
Manifest 1.0.0.0 HgsDiagnostics Core,Desk {New-HgsTraceTarget, Get-HgsTrace, Get-HgsTraceFileData, Test-HgsTraceTa…
Binary 2.0.0.0 Hyper-V Core,Desk {Add-VMAssignableDevice, Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMGp…
Binary 1.1 Hyper-V Core,Desk {Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMHardDiskDrive, Add-VMMigra…
Manifest 2.0.0.0 International Core,Desk {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, G…
Manifest 1.0.0.0 Kds Core,Desk {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration…}
Manifest 3.0.0.0 Microsoft.PowerShell.Diagnostics Core,Desk {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter…}
Manifest 1.0.0.0 Microsoft.PowerShell.LocalAccounts Core,Desk {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGro…
Manifest 3.1.0.0 Microsoft.PowerShell.Management Core,Desk {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…}
Manifest 1.0 MMAgent Core,Desk {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent…}
Manifest 2.0.0.0 NetAdapter Core,Desk {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecks…
Manifest 1.0.0.0 NetConnection Core,Desk {Get-NetConnectionProfile, Set-NetConnectionProfile}
Manifest 1.0.0.0 NetEventPacketCapture Core,Desk {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-N…
Manifest 2.0.0.0 NetLbfo Core,Desk {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfo…
Manifest 1.0.0.0 NetNat Core,Desk {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-Net…
Manifest 2.0.0.0 NetQos Core,Desk {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPoli…
Manifest 2.0.0.0 NetSecurity Core,Desk {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCrypt…
Manifest 1.0.0.0 NetSwitchTeam Core,Desk {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetS…
Manifest 1.0.0.0 NetTCPIP Core,Desk {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6P…
Manifest 1.0.0.0 NetworkConnectivityStatus Core,Desk {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyCo…
Manifest 1.0.0.0 NetworkSwitchManager Core,Desk {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Ge…
Manifest 1.0.0.0 NetworkTransition Core,Desk {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disab…
Manifest 1.0.0.0 PcsvDevice Core,Desk {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice…}
Manifest 1.0.0.0 PKI Core,Desk {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCe…
Manifest 1.0.0.0 PnpDevice Core,Desk {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevi…
Manifest 1.1 PrintManagement Core,Desk {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration…
Binary 1.0.11 ProcessMitigations Core,Desk {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigati…
Script 3.0 Provisioning Core,Desk {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-Truste…
Manifest 1.0.0.0 ScheduledTasks Core,Desk {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregiste…
Manifest 2.0.0.0 SecureBoot Core,Desk {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-…
Manifest 2.0.0.0 SmbShare Core,Desk {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess…}
Manifest 2.0.0.0 SmbWitness Core,Desk {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw…}
Manifest 1.0.0.0 StartLayout Core,Desk {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, G…
Manifest 2.0.0.0 Storage Core,Desk {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk,…
Manifest 2.0.0.0 TLS Core,Desk {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSession…
Manifest 1.0.0.0 TroubleshootingPack Core,Desk {Get-TroubleshootingPack, Invoke-TroubleshootingPack}
Manifest 2.0.0.0 TrustedPlatformModule Core,Desk {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm…}
Binary 2.1.639.0 UEV Core,Desk
Manifest 2.0.0.0 VpnClient Core,Desk {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConn…
Manifest 1.0.0.0 Wdac Core,Desk {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn…}
Manifest 2.0.0.0 Whea Core,Desk {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy}
Manifest 1.0.0.0 WindowsDeveloperLicense Core,Desk {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-W…
Script 1.0 WindowsErrorReporting Core,Desk {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-Window…
Manifest 1.0.0.0 WindowsSearch Core,Desk {Get-WindowsSearchSetting, Set-WindowsSearchSetting}
Manifest 1.0.0.0 WindowsUpdate Core,Desk Get-WindowsUpdateLog
Manifest 1.0.0.2 WindowsUpdateProvider Core,Desk {Get-WUAVersion, Get-WULastInstallationDate, Get-WULastScanSuccessDate, …

```

## Debug output

```
PS C:\Users\weshi1> $DebugPreference
SilentlyContinue
PS C:\Users\weshi1> $DebugPreference='Continue'
PS C:\Users\weshi1> New-AzAvailabilitySet -ResourceGroupName weirg -Name "avail-set-0" -Location northwest -Managed
WARNING: Parameter 'Managed' is obsolete. This parameter is obsolete. Please use Sku parameter instead.
DEBUG: 11:22:46 PM - NewAzureAvailabilitySetCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 11:22:46 PM - using account id 'e7266ca7-2b0b-4ba5-b8bf-dfc9e9ba3b97'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'e7266ca7-2b0b-4ba5-b8bf-dfc9e9ba3b97', environment: 'AzureStack', tenant: '00de9b88-26db-443e-bfae-f884ddfe2e8a'
DEBUG: [ServicePrincipalAuthenticator] Creating IConfidentialClientApplication with secret - ClientId: 'e7266ca7-2b0b-4ba5-b8bf-dfc9e9ba3b97', Authority: 'https://login.microsoftonline.com/00de9b88-26db-443e-bfae-f884ddfe2e8a', RedirectUri: 'https://adminmanagement.azlr.onmicrosoft.com/1497b3b0-e831-42eb-bc46-a4f9386fcbac', UseAdfs: 'False'
DEBUG: [ServicePrincipalAuthenticator] Calling AcquireTokenForClient - Scopes: 'https://adminmanagement.azlr.onmicrosoft.com/1497b3b0-e831-42eb-bc46-a4f9386fcbac/.default'
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) MSAL MSAL.CoreCLR with assembly version '4.10.0.0'. CorrelationId(49c0900a-578f-4332-b980-1aa1da4c395f)
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) === AcquireTokenForClientParameters ===
SendX5C: False
ForceRefresh: False

DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0)
=== Request Data ===
Authority Provided? - True
Scopes - https://adminmanagement.azlr.onmicrosoft.com/1497b3b0-e831-42eb-bc46-a4f9386fcbac/.default
Extra Query Params Keys (space separated) -

DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) === Token Acquisition (ClientCredentialRequest) started:

Authority Host: login.microsoftonline.com
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) Looking up access token in the cache.
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) Filtering by tenant id item count before 0 after 0
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) Filtering by token type item count before 0 after 0
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) No matching entry found for user or assertion
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:46 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) Resolving authority endpoints... Already resolved? - TRUE
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) ScopeSet was missing from the token response, so using developer provided scopes in the result.
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) Checking client info returned from the server..
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) Saving Token Response to cache..
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) Looking for scopes for the authority in the cache which intersect with https://adminmanagement.azlr.onmicrosoft.com/1497b3b0-e831-42eb-bc46-a4f9386fcbac/.default
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) Intersecting scope entries count - 0
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 49c0900a-578f-4332-b980-1aa1da4c395f] (UnknownClient: 0.0.0.0) === Token Acquisition finished successfully. An access token was returned with Expiration Time: 09/24/2020 07:22:46 +00:00 ===
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '00de9b88-26db-443e-bfae-f884ddfe2e8a', UserId: 'e7266ca7-2b0b-4ba5-b8bf-dfc9e9ba3b97'
DEBUG: [Common.Authentication]: Authenticating using Account: 'e7266ca7-2b0b-4ba5-b8bf-dfc9e9ba3b97', environment: 'AzureStack', tenant: '00de9b88-26db-443e-bfae-f884ddfe2e8a'
DEBUG: [ServicePrincipalAuthenticator] Creating IConfidentialClientApplication with secret - ClientId: 'e7266ca7-2b0b-4ba5-b8bf-dfc9e9ba3b97', Authority: 'https://login.microsoftonline.com/00de9b88-26db-443e-bfae-f884ddfe2e8a', RedirectUri: 'https://adminmanagement.azlr.onmicrosoft.com/1497b3b0-e831-42eb-bc46-a4f9386fcbac', UseAdfs: 'False'
DEBUG: [ServicePrincipalAuthenticator] Calling AcquireTokenForClient - Scopes: 'https://adminmanagement.azlr.onmicrosoft.com/1497b3b0-e831-42eb-bc46-a4f9386fcbac/.default'
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) MSAL MSAL.CoreCLR with assembly version '4.10.0.0'. CorrelationId(3075df09-977b-4e84-bce5-8d17a2b1608d)
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) === AcquireTokenForClientParameters ===
SendX5C: False
ForceRefresh: False

DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0)
=== Request Data ===
Authority Provided? - True
Scopes - https://adminmanagement.azlr.onmicrosoft.com/1497b3b0-e831-42eb-bc46-a4f9386fcbac/.default
Extra Query Params Keys (space separated) -

DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) === Token Acquisition (ClientCredentialRequest) started:

Authority Host: login.microsoftonline.com
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) Looking up access token in the cache.
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) Filtering by tenant id item count before 0 after 0
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) Filtering by token type item count before 0 after 0
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) No matching entry found for user or assertion
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) Resolving authority endpoints... Already resolved? - TRUE
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) ScopeSet was missing from the token response, so using developer provided scopes in the result.
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) Checking client info returned from the server..
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) Saving Token Response to cache..
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) Looking for scopes for the authority in the cache which intersect with https://adminmanagement.azlr.onmicrosoft.com/1497b3b0-e831-42eb-bc46-a4f9386fcbac/.default
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) Intersecting scope entries count - 0
DEBUG: [MSAL] Info: (False) MSAL 4.10.0.0 MSAL.CoreCLR N/A [09/24/2020 06:22:47 - 3075df09-977b-4e84-bce5-8d17a2b1608d] (UnknownClient: 0.0.0.0) === Token Acquisition finished successfully. An access token was returned with Expiration Time: 09/24/2020 07:22:46 +00:00 ===
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '00de9b88-26db-443e-bfae-f884ddfe2e8a', UserId: 'e7266ca7-2b0b-4ba5-b8bf-dfc9e9ba3b97'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://adminmanagement.northwest.azs-longhaul-02.selfhost.corp.microsoft.com/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/weirg/providers/Microsoft.Compute/availabilitySets/avail-set-0?api-version=2017-12-01

Headers:
x-ms-client-request-id : 6bb90102-89b5-492e-9fdf-e6be2399565c
Accept-Language : en-US

Body:
{
"location": "northwest"
}

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control : no-cache
Pragma : no-cache
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-served-by : 00000000-0000-0000-0000-000000000000_0
x-ms-correlation-request-id : ee8526e5-3861-4395-91ea-56c9ed8c6ba4
Server : Microsoft-HTTPAPI/2.0
WWW-Authenticate : oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvekfFafA7GnM8aX+zAsYYywGS9swXbCAm8miHpB3BwLX+WuMfmhs78lve6X3ero0XrQ/E9I1MRGC6fUxDC55moyy9FvBhnXhqR9DUNexDNWAzx0hkoKNak/GKx+xxvu/hTGTatmoQXUxVis3fbAvY
x-ms-ratelimit-remaining-subscription-writes: 1198
x-ms-request-id : ee8526e5-3861-4395-91ea-56c9ed8c6ba4
x-ms-routing-request-id : NORTHWEST:20200924T062249Z:ee8526e5-3861-4395-91ea-56c9ed8c6ba4
X-Content-Type-Options : nosniff
Date : Thu, 24 Sep 2020 06:22:49 GMT

Body:
{
"name": "avail-set-0",
"id": "/subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/weirg/providers/Microsoft.Compute/availabilitySets/avail-set-0",
"type": "Microsoft.Compute/availabilitySets",
"location": "northwest",
"properties": {
"platformUpdateDomainCount": 5,
"platformFaultDomainCount": 3
},
"sku": {
"name": "Classic"
}
}

ResourceGroupName : weirg
Id : /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/weirg/providers/Microsoft.Compute/availabilitySets/avail-
set-0
Name : avail-set-0
Type : Microsoft.Compute/availabilitySets
Location : northwest
Managed : False
Sku : Classic
Tags : {}
PlatformFaultDomainCount : 3
PlatformUpdateDomainCount : 5
Statuses : []
VirtualMachinesReferences : []

DEBUG: AzureQoSEvent: CommandName - New-AzAvailabilitySet; IsSuccess - True; Duration - 00:00:00.8176018;
DEBUG: Finish sending metric.
DEBUG: 11:22:48 PM - NewAzureAvailabilitySetCommand end processing.
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the New-AzAvailabilitySet entry point and inspect how its parameters expose the obsolete Managed option. Confirm the existing warning and parameter listing behavior, then verify that Managed is no longer exposed while the Sku parameter remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.