Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The BladeInvokeControl user-interface (UI) element opens an Azure portal blade from a Form view and stores the data returned by that blade. Use it when the form needs a richer picker or configuration experience that already exists as a portal blade.
BladeInvokeControl is supported in Form view for template spec portal forms. The target blade must be available in the Azure portal runtime and must support being invoked with the supplied parameters.
UI sample
There's no UI for BladeInvokeControl. It opens the blade named in bladeReference when openBladeStatus evaluates to an active state.
Schema
{
"name": "skuPicker",
"type": "Microsoft.Solutions.BladeInvokeControl",
"openBladeStatus": "[steps('specs').openSkuPicker]",
"defaultValue": {
"selectedSku": "Standard"
},
"transforms": {
"sku": "selectedSku"
},
"bladeReference": {
"name": "SkuPickerBlade",
"extension": "Contoso_Azure_Service",
"parameters": {
"subscriptionId": "[steps('basics').resourceScope.subscription.subscriptionId]",
"location": "[steps('basics').resourceScope.location.name]"
}
}
}
Sample output
The control's output is the object returned by the invoked blade.
{
"selectedSku": "Standard"
}
With the transforms property in the schema example, the transformed value can be referenced with [steps('specs').skuPicker.transformed.sku].
Remarks
- The
openBladeStatusproperty is an expression that controls when the blade opens. - The
bladeReferenceproperty can be a blade name string or an object. When it's an object,nameis the portal blade to open,extensionidentifies the portal extension that owns the blade, andparametersis passed to the target blade. - The shape of
bladeReference.parametersis defined by the target blade, not by the Form view schema. - The
defaultValueproperty is optional. It initializes the control output before the blade returns data. - The
transformsproperty is optional. Each key creates a projected value from the returned blade data using a property path. - The invoked blade must return data that the form can use. Reference returned values with expressions such as
[steps('specs').skuPicker.selectedSku].