Closed andrew-kelleher closed 2 years ago
If you run Get-AzSubscriptionDeploymentStack
with -Debug
do you get a "No HTTP resource was found that matches the request URI" response for the https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks?api-version=2021-05-01-preview
request?
If so I seem to be facing the same issue. I've let @bmoore-msft know via email and the dev team may already be looking at it.
Hi @maciejporebski, thanks for tip on the -debug switch.
Yes, I'm getting exactly the same response in the body -
Body:
{
"message": "No HTTP resource was found that matches the request URI 'https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks?api-version=2021-05-01-preview'."
}
Can you run:
Get-AzProviderFeature -ProviderNamespace Microsoft.Resources
And paste the output and your subId?
Before you do what Brian suggested, you should also check that you are working in the correct subscription context by using:
Select-AzSubscription <>
Just tried using the module again and I no longer get this issue!
In case it helps in any way this is my output for 9cc55246-7157-4ef7-a375-ce22fb559f66
FeatureName ProviderName RegistrationState
----------- ------------ -----------------
DeploymentStacksPreview Microsoft.Resources Registered
@maciejporebski - thanks for confirming... @andrew-kelleher let us know what you find out...
@bmoore-msft when running Get-AzProviderFeature -ProviderNamespace Microsoft.Resources
nothing's returned.
So possibly this particular subscription hasn't been onboarded onto to the preview?
Certainly possible - this is the a82f... subscription?
Yes, that's the subscription 👍
I seem to have the same with my MSDN subscription(s). Could that be a reason that they are not onboarded? I don't get any output running: Get-AzProviderFeature -ProviderNamespace Microsoft.Resources
I get the error for both the SubscriptionStack and ResourceGroupStack cmdlet
New-AzSubscriptionDeploymentStack: Object reference not set to an instance of an object.
New-AzResourceGroupDeploymentStack: Object reference not set to an instance of an object.
Hi @rbnmk. Yes, the issue for us was that our subscription needed to be onboarded. It's all working for us now.
if there's no provider feature registered, that's the first step to fix - you can send my your subId and we can onboard it.
Describe the bug After installing the deployments stack PS modules, running any of the cmdlets returns an
Object reference not set to an instance of an object
error.To Reproduce Steps to reproduce the behaviour:
v0.1.1
)7.2
using$PSVersionTable.PSVersion
Connect-AzAccount
Set-AzContext
Set-ExecutionPolicy Bypass -Scope Process
./AzDeploymentStacksPrivatePreview.ps1
The installation appears to complete successfully and returns -
Issue When running any of the new cmdlets i.e.
Get-AzSubscriptionDeploymentStack
the following error is returned -Repro Environment Host OS: Windows 10 Powershell Version: 7.2
The output from
get-module az.resources -ListAvailable
returns -Server Debugging Information Timestamp of issue (please include time zone): 16/11/2021 @ 10:00 GMT Data Center (eg, West Central US, West Europe): UK South