Microsoft.Sql/locations/instanceFailoverGroups - how to use #8888
-
Hi all, Does anyone know how to use the bicep for Microsoft.Sql/locations/instanceFailoverGroups ? It's looking for a parent, which I guess is Microsoft.Sql/locations but I don't know how or what Microsoft.Sql/locations is. Any help would be great TIA |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
HI @cmptscpeacock how did you go with this one? You can try with the following syntax resource FG 'Microsoft.Sql/locations/instanceFailoverGroups@2022-05-01-preview' existing = {
name: 'eastus/fg'
}
output FG object = FG You can review the PowerShell cmdlets for more info. e.g.
notice the id of the resource:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, yes this worked as you suggested. My module:
|
Beta Was this translation helpful? Give feedback.
HI @cmptscpeacock how did you go with this one?
You can try with the following syntax
You can review the PowerShell cmdlets for more info.
https://learn.microsoft.com/en-us/powershell/module/Az.sql/new-Azsqldatabaseinstancefailovergroup?view=azps-9.6.0#example-2
e.g.