-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to redeploy solution #45
Comments
Hi there,
I didn't delete the managed identity as I didn't see that needed to be done
in the documentation (
https://docs.microsoft.com/en-us/azure/azure-functions/start-stop-vms/remove).
I looked where you suggested and there appeared to be an orphaned identity
(screenshot below), once this was removed I managed to redeploy the
solution to my own test tenant and then doing the same thing on my
company's production tenant. Thank you very much for your assistance
it's much appreciated, might be worth adding this requirement into the
otherwise excellent documentation regarding redeployment.
[image: image.png]
…On Fri, 14 Jan 2022 at 20:52, svarga-msft ***@***.***> wrote:
When you removed the original deployment did you delete the managed
identity associated with it? You might need to go into your subscription
access control and find the managed identity and delete it.
From the error it sounds like the managed identity used by start stop is
not getting deployed correctly. Is it possible that the subscription
permissions have been updated recently?
You should see your function apps managed identity under the subscriptions
access control like this:
[image: image]
<https://user-images.githubusercontent.com/68304251/149583473-de6a60df-d9a9-4c65-9c35-9d4da5cd5457.png>
Let me know if you see it and we can go from there.
—
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXJWJANRXEAMPA5SWT3NX5LUWCEIRANCNFSM5L6X7DMA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Great to hear your issue was resolved. We haven't experienced this with our test deployments, but we will update our documentation to mention this for other users. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
First of all thank you for this solution, it's great, however I needed to remove it and redeploy it and the deployment fails. I have tried redeploying this on 2 tenants now (different subscriptions completely) and get the same issue.
I get bad requests on 3 of the functions as follows:
{
"status": "Failed",
"error": {
"code": "BadRequest",
"message": "Scope can not be updated"
}
}
After this I deleted the entire resource group I was deploying to and tried again to a new resource group, it got further but still failed, this time with:
Although this time all resources seemed to be deployed, when attempting to start a VM it failed with:
{
"Message": "An error has occurred.",
"ExceptionMessage": "The client 'xxx' with object id 'xxx' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resources/read' over scope '/subscriptions/xxx' or the scope is invalid. If access was recently granted, please refresh your credentials.",
"ExceptionType": "Microsoft.Rest.Azure.CloudException",
Please help, I am not doing anything differently to when I initially deployed it to either tenant, it just isn't redeploying, is there some role or something I need to remove prior to redeploying?
Many thanks in advance!
The text was updated successfully, but these errors were encountered: