Skip to content

Implement Always On Policies as powershell code #9911

@andreasjordan

Description

@andreasjordan

Summarize Functionality

I want to implement those policies with PowerShell:

https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/always-on-policies-for-operational-issues-always-on-availability

For every policy I would like to have PowerShell code that uses the new command Get-DbaAgDatabaseReplicaState from pr #9910 and implements the test logic to tell if the policy is in a healthy state or an unhealthy state.

Is there a command that is similiar or close to what you are looking for?

No

Technical Details

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions