SqlAgentOperators is used to add/remove SQL Agent Operators.
The resource can also update the operators email address.
Source |
|
DSC Resource |
|
Documentation |
-
Target machine must be running Windows Server 2012 or later.
-
Target machine must be running SQL Server Database Engine 2012 or later.
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
DefaultInstanceName |
String |
Default SQL InstanceName |
Default: |
|
Mandatory |
Hashtable[] |
List of SQL Agent Operators. |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name |
Key |
String |
The name of the SQL Server Agent operator. |
|
ServerName |
Key |
String |
The host name of the SQL Server to be configured. Default value is the current computer name. |
|
InstanceName |
Key |
String |
The name of the SQL Server instance to be configured. |
|
EmailAddress |
String |
The email address to be used for the SQL Server Agent operator. |
||
Ensure |
String |
Specifies if the SQL Server Agent operator should be present or absent. |
|
SqlAgentOperators:
DefaultInstanceName: MSSQLSERVER
AgentOperators:
- Name: 'DbaTeam'
ServerName: 'TestServer'
InstanceName: 'MSSQLServer'
EmailAddress: '[email protected]'
- Name: 'APPTeam'
ServerName: 'TestServer'
InstanceName: 'MSSQLServer'
EmailAddress: '[email protected]'