Author Posts

July 25, 2018 at 10:35 pm

Good day,
I am working on a function to enable coworkers an easy method to install the azure site recovery agent, and enable replication.
One problem I am stuck on is I would like to have a parameter in the function that queries azure for our subscriptions and returns the options. That was easy I thought use a dynamic param. However the next part is to list resource groups, vnets and subnets in a method they can also be chosen params. I thought argument completer but not sure on that either. Any suggestions are greatly appreciated.

Thank you Jason

July 26, 2018 at 1:33 pm

More dynamic parameters would do it, but you're going to engage a performance hit making all those queries. Auto-complete for parameter values gets REALLY complicated when one parameter depends on the value of another; that's why you don't see this kind of thing all that often.