Change primaryEndpoints to primary (#21079)

* Status update for miaa structure

* Added examples in comments

* Changed primaryEndpoint to primary

Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
Candice Ye
2022-11-02 14:06:56 -07:00
committed by GitHub
parent 64f40a56d8
commit f6dbe7539c
5 changed files with 13 additions and 13 deletions

View File

@@ -123,7 +123,7 @@ export class MiaaModel extends ResourceModel {
}
// If we have an external endpoint configured then fetch the databases now
if (this._config.status.endpoints.primaryEndpoint) {
if (this._config.status.endpoints.primary) {
this.getDatabases(false).catch(_err => {
// If an error occurs still fire the event so callers can know to
// update (e.g. so dashboards don't show the loading icon forever)
@@ -205,7 +205,7 @@ export class MiaaModel extends ResourceModel {
}
protected createConnectionProfile(): azdata.IConnectionProfile {
const ipAndPort = parseIpAndPort(this.config?.status.endpoints.primaryEndpoint || '');
const ipAndPort = parseIpAndPort(this.config?.status.endpoints.primary || '');
return {
serverName: `${ipAndPort.ip},${ipAndPort.port}`,
databaseName: '',