Giter Site home page Giter Site logo

Comments (23)

parojasmsft avatar parojasmsft commented on May 17, 2024

Hi Oramoss,

I have notified our dev team of the issue so they can look into it.

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

Is this fixed now then? If so, what was the resolution and how do I get it installed please?

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Sorry accidently closed it.

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Did the start operation was working fine for you?

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

From your payload the action was mentioned as stop so checking on the status of the start operation

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

start and stop both fail in same way. Thanks for reopening.

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

I was trying to do it on a subscription which wasn't the one where the software is installed and thought it might be that but also tried for same schema last night and that has same issues.

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Hey, can you make sure you have added the managed identity of azure functions with role as contributor into other subscriptions?

https://github.com/microsoft/startstopv2-deployments/blob/main/README.md#enable-multi-subscription-support

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

Was already Contributor on the two subscriptions (the one in which the Function App is installed and one it is not installed).

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Are they in same tenant?

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

Yes, same tenant.

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Just now tried to test the same behavior on our side and it works fine. Probably next step is to find the logs from the function/monitor (as mentioned in the below link) to figure out whats going on.

https://docs.microsoft.com/en-us/azure/azure-functions/start-stop-vms/troubleshoot

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

Article suggests looking through logs for the "Scheduled" HTTP function...there are no errors showing against that function, for it's entire history.

image

Screen only shows logs for last 20 invocations so I click on Run query in App Insights to see the older ones...I find the ones that relate to the errored run and they show the same 500 return code but there are no details of logs/messages to dig into...doesn't seem to help.

Leave with me to dig...

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Can we have a quick call in teams? Would like to see whats going on and help you to unblock. Not sure what time zone you're currently in but can meet either today or Monday so please let me know.

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

Hi

I could do a call on Monday sometime - I'm in UK so it's now 19:31 here.

Thanks
Jeff

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Cool then I will setup meeting on our Monday morning 10am March 3rd which will be 6pm monday your time, rite? can you please share your email id to invite you?

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

[email protected] 6pm Monday UK time is fine

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Hey Jeff,

Thanks for joining the meeting. I am happy to say that we have fixed the bug and updated the package and thanks for helping us to find this bug.

We haven't tested this in a subscription where classic provider was disabled/not supported which is the root cause of this issue.

Will it be fine for you to do the new deployment of this solution? Our Auto-Update feature (which allows customer to get the updates without re-installing) is disabled for now hence asking you to re-install in a new resource group.

After installing please give it a try and update us on the outcome!

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

Will try shortly....

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

That worked, at least to use scheduled start/stop to start a VM in the Development Spoke, from the Hub installation.

A couple of issues:

  1. When I installed I first removed all resources from the target resource group (where I install this facility). The resource group was then empty prior to installing. The deployment ran with errors - image below. Complaints about inability to change scope...not sure why...but the facility worked for scheduled start/stop as I say.
  2. When running across subscriptions - as I tested - you advise giving Contributor role at Subscription level, to the Function App. Can we be a little less generous on the privileges - least privileges principle wise?
    image

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Glad that it works finally!

Comments on your points

  1. I think that error is ok for now. The recommended way is to delete the RG instead of deleting the individual resource. These alerts/queries wont show up in the RG hence when you redeploy in the same RG it was unable to override hence that issue. I will check and improve the experience.
  2. Thanks for the feedback. I will explore the options on this. Probably "Virtual Machine Contributor" would be the fit but today we are doing few other operations like cost savings which needs to call other API's etc which might benefit of having the generic contributor perms.

from startstopv2-deployments.

oramoss avatar oramoss commented on May 17, 2024

Yeah, I did just remove the resources in the RG rather than the RG itself - fair enough. Maybe if I'd checked show hidden I would have seen them and removed them as well.
No problem - for now Contributor is fine but clearly better if it can be locked down in time.

Many thanks for the swift response of your team.
Regards
Jeff

from startstopv2-deployments.

balas77 avatar balas77 commented on May 17, 2024

Thanks & happy to work with you Jeff! I will go ahead and close this issue!

from startstopv2-deployments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.