Skip to content

Commit

Permalink
Enable AvailabilityZone feature (#6043)
Browse files Browse the repository at this point in the history
* Add support for AZ

* Fix prettier error
  • Loading branch information
jinghzhu-msft authored Jan 30, 2022
1 parent 5e51808 commit 6f2ab22
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"name": "Standard"
},
"properties": {
"provisioningState": "Accepted"
"provisioningState": "Accepted",
"zoneRedundancy": "Enabled"
},
"identity": {
"type": "systemAssigned"
Expand All @@ -32,7 +33,8 @@
"properties": {
"provisioningState": "Succeeded",
"grafanaVersion": "7.1",
"endpoint": "my.azgrafana.io"
"endpoint": "my.azgrafana.io",
"zoneRedundancy": "Enabled"
},
"identity": {
"type": "SystemAssigned"
Expand Down Expand Up @@ -62,7 +64,8 @@
"properties": {
"provisioningState": "Accepted",
"grafanaVersion": "7.1",
"endpoint": "my.azgrafana.io"
"endpoint": "my.azgrafana.io",
"zoneRedundancy": "Enabled"
},
"tags": {
"Environment": "Dev"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"properties": {
"provisioningState": "Succeeded",
"grafanaVersion": "7.1",
"endpoint": "my.azgrafana.io"
"endpoint": "my.azgrafana.io",
"zoneRedundancy": "Enabled"
},
"tags": {
"Environment": "Dev"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"properties": {
"provisioningState": "Succeeded",
"grafanaVersion": "7.1",
"endpoint": "my.azgrafana.io"
"endpoint": "my.azgrafana.io",
"zoneRedundancy": "Enabled"
},
"tags": {
"Environment": "Dev"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"properties": {
"provisioningState": "Succeeded",
"grafanaVersion": "7.1",
"endpoint": "my.azgrafana.io"
"endpoint": "my.azgrafana.io",
"zoneRedundancy": "Enabled"
},
"tags": {
"Environment": "Dev"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"tags": {
"Environment": "Dev 2"
},
"location": "West US"
"location": "West US",
"properties": {
"zoneRedundancy": "Enabled"
}
}
},
"responses": {
Expand All @@ -23,7 +26,8 @@
"properties": {
"provisioningState": "Succeeded",
"grafanaVersion": "7.1",
"endpoint": "my.azgrafana.io"
"endpoint": "my.azgrafana.io",
"zoneRedundancy": "Enabled"
},
"tags": {
"Environment": "Dev 2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"tags": [
"GrafanaResource"
],
"summary": "Create a workspace for Grafana resource.",
"summary": "Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.",
"operationId": "Grafana_Create",
"consumes": [
"application/json"
Expand Down Expand Up @@ -373,6 +373,7 @@
},
"details": {
"type": "array",
"x-ms-identifiers": [],
"items": {
"$ref": "#/definitions/ErrorResponseBody"
}
Expand Down Expand Up @@ -457,6 +458,18 @@
"description": "The endpoint of the Grafana instance.",
"type": "string",
"readOnly": true
},
"zoneRedundancy": {
"$ref": "#/definitions/ZoneRedundancy"
}
}
},
"GrafanaResourcePropertiesUpdateParameters": {
"type": "object",
"properties": {
"zoneRedundancy": {
"description": "The high availability mode of the grafana resource.",
"$ref": "#/definitions/ZoneRedundancy"
}
}
},
Expand All @@ -476,7 +489,12 @@
}
},
"location": {
"description": "The location of the grafana resource.",
"type": "string"
},
"properties": {
"description": "Properties specific to the grafana resource.",
"$ref": "#/definitions/GrafanaResourcePropertiesUpdateParameters"
}
}
},
Expand Down Expand Up @@ -560,6 +578,7 @@
"value": {
"description": "List of operations supported by the Microsoft.Dashboard provider.",
"type": "array",
"x-ms-identifiers": [],
"items": {
"$ref": "#/definitions/OperationResult"
}
Expand Down Expand Up @@ -650,6 +669,18 @@
}
}
},
"ZoneRedundancy": {
"enum": [
"Disabled",
"Enabled"
],
"default": "Disabled",
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "ZoneRedundancy"
}
},
"UserAssignedIdentity": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 6f2ab22

Please sign in to comment.