Skip to content

Microsoft.Sql/locations/instanceFailoverGroups - how to use #8888

Answered by brwilkinson
cmptscpeacock asked this question in Q&A
Discussion options

You must be logged in to vote

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.

https://learn.microsoft.com/en-us/powershell/module/Az.sql/new-Azsqldatabaseinstancefailovergroup?view=azps-9.6.0#example-2

e.g.

$failoverGroup = New-AzSqlDatabaseInstanceFailoverGroup -Name fgName -Location location -ResourceGroupName rg -PrimaryManagedInstanceName $managedInstance.Name -PartnerRegion $partnerRegion -PartnerManagedInstanceName $partnerManagedInstance.Name -FailoverPolicy Manual

ResourceGroupName …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@brwilkinson
Comment options

Answer selected by cmptscpeacock
Comment options

You must be logged in to vote
1 reply
@brwilkinson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants