This issue has already been implemented (see #435) . This is purely for tracking and documentation purposes.
We should switch the context.df.callHttp() on orchestration contexts from using explicit arguments to using one options argument for all parameters, following the lead of popular frameworks like axios
const restartResponse = yield context.df.callHttp(
"POST",
`https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.Compute/virtualMachines/${vmName}/restart?api-version=${apiVersion}`,
undefined, // no request content
undefined, // no request headers (besides auth which is handled by the token source)
tokenSource
);
This issue has already been implemented (see #435) . This is purely for tracking and documentation purposes.
We should switch the
context.df.callHttp()
on orchestration contexts from using explicit arguments to using one options argument for all parameters, following the lead of popular frameworks likeaxios
Before (actual sample from our docs here):
After: