Hi Guys,
As working in the network there seems to be a problem with the Set-Azurermdiagnosticsetting for web apps as recently raised 16 days ago. Can you please re-open the thread... If this is a breaking change is there a fix or a work around for this . I see a lot of people using this command in Azure PowerShell so can we can still use this command-let as the error is saying its not whitelisted in private preview error...We cannot Private preview in this sector.This is Unfortunately closed from a previous thread so can this till be investigated please as your support is greatly appreciated...
https://github.com/MicrosoftDocs/azure-docs/issues/22909
Error Message
Set-AzureRmDiagnosticsetting Exception type: ErrorResponseException, Message is not whitelisted in the private preview of diagnostic log settings
for Azure resource type 'microsoft.web/sites', feature flag: 'microsoft.insights/diagnosticsettingpreview
Many Thanks
T
@teedeuk Thank you for the valuable feedback,we are investigating the issue.
Hi @teedeuk, we recently moved from AzureRM to Az module for powershell. You can read more about the change here. There were several cmdlets noun prefix changes. In AzureRM, cmdlets used either 'AzureRM' or 'Azure' as a noun prefix. Az simplifies and normalizes cmndlet names, so that all cmdlets use 'Az' as their cmdlet noun prefix. So try using Set-AzDiagnosticSetting and let us know if that works for you.
Hi @teedeuk, any updates for us?
Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.
Hi,
I'm having same issue, and I'm correctly use Set-AzDiagnosticSetting as explained above.
Set-AzDiagnosticSetting : Exception type: ErrorResponseException, Message: Subscription 'xxxxxx-0c4e-4fb2-8444-yyyyyyyyyy' is not whitelisted in the private preview
of diagnostic log settings for Azure resource type 'microsoft.web/sites', feature flag: 'microsoft.insights/diagnosticsettingpreview'., Code: BadRequest, Status
code:BadRequest, Reason phrase: Bad Request
I'm using Azure.Monitor 1.0.0. Are there any way to register to this preview ? or how to whiltelist subscription ?
Thanks
Is it possible to reopen this? I am having the same issue with Set-AzDiagnosticSetting' the subscription used to create the site is not whitelisted for it.
Normally one could do:
Register-AzProviderFeature -ProviderNamespace microsoft.insights -FeatureName diagnosticsettingpreview
Though there seems to be something more required, as I'm just stuck in pending registration
Most helpful comment
Hi,
I'm having same issue, and I'm correctly use Set-AzDiagnosticSetting as explained above.
I'm using Azure.Monitor 1.0.0. Are there any way to register to this preview ? or how to whiltelist subscription ?
Thanks