Azure / Azure/azure-powershell
Missing instructions to suppress preview feature warnings
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### Description
E.g. Entra ID related CmdLets still have preview warning attributes on those. E.g.: https://github.com/Azure/azure-powershell/blob/5607f221ec17cedec89da945181893495d5a1e5e/src/Resources/MSGraph.Autorest/generated/cmdlets/NewAzADGroupGraphRefMember_Create.cs#L22
Using `Set-AzConfig -DisplayBreakingChangeWarning $false` will not turn off those message but `$Env:SuppressAzurePowerShellBreakingChangeWarnings = "true"`
For discussion:
* Is behaviour of `Runtime.PreviewMessage` documented?
* Should code generator generate code that also does proper checks for AzConfig data to allow more granlular suppression by namespace or by CmdLet name
* Is this warning on Entra ID related Cmdlets still needed?
* Is environment variable usage documented:
* not here: https://learn.microsoft.com/en-us/powershell/azure/configure-global-settings?view=azps-12.4.0
* exists here: https://learn.microsoft.com/en-us/powershell/azure/faq?view=azps-12.4.0
[Historical ticket](https://github.com/Azure/azure-powershell/issues/19695) mentions only `-WarningAction Ignore` but that's not good.
### Script or Debug output
```PowerShell
```
### Environment data
```PowerShell
```
### Module versions
```PowerShell
```
### Error output
```PowerShell
```
Contributor guide
Assessment
This issue has not been assessed yet.