-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db87148
commit 68a9bf2
Showing
89 changed files
with
1,814 additions
and
597 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"commit": "8ff0e3b8dc12cd793f4f2208d76f9f3a7f51176c", | ||
"commit": "483cdd30332340a14e3d09eafdc1a18f3ba4324c", | ||
"readme": "specification/sqlvirtualmachine/resource-manager/readme.md", | ||
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sqlvirtualmachine\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.7 --generate-sample=true", | ||
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sqlvirtualmachine\\resource-manager\\readme.md --use=@autorest/[email protected].2 --generate-sample=true", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git", | ||
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", | ||
"use": "@autorest/[email protected].0-rc.7" | ||
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", | ||
"use": "@autorest/[email protected].2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
144 changes: 131 additions & 13 deletions
144
sdk/sqlvirtualmachine/arm-sqlvirtualmachine/review/arm-sqlvirtualmachine.api.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...qlvirtualmachine/arm-sqlvirtualmachine/samples-dev/sqlVirtualMachineTroubleshootSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
|
||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
import { | ||
SqlVmTroubleshooting, | ||
SqlVirtualMachineManagementClient | ||
} from "@azure/arm-sqlvirtualmachine"; | ||
import { DefaultAzureCredential } from "@azure/identity"; | ||
import * as dotenv from "dotenv"; | ||
|
||
dotenv.config(); | ||
|
||
/** | ||
* This sample demonstrates how to Starts SQL virtual machine troubleshooting. | ||
* | ||
* @summary Starts SQL virtual machine troubleshooting. | ||
* x-ms-original-file: specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2022-08-01-preview/examples/TroubleshootSqlVirtualMachine.json | ||
*/ | ||
async function startSqlVirtualMachineTroubleshootingOperation() { | ||
const subscriptionId = | ||
process.env["SQLVIRTUALMACHINE_SUBSCRIPTION_ID"] || | ||
"00000000-1111-2222-3333-444444444444"; | ||
const resourceGroupName = | ||
process.env["SQLVIRTUALMACHINE_RESOURCE_GROUP"] || "testrg"; | ||
const sqlVirtualMachineName = "testvm"; | ||
const parameters: SqlVmTroubleshooting = { | ||
endTimeUtc: new Date("2022-07-09T22:10:00Z"), | ||
properties: { unhealthyReplicaInfo: { availabilityGroupName: "AG1" } }, | ||
startTimeUtc: new Date("2022-07-09T17:10:00Z"), | ||
troubleshootingScenario: "UnhealthyReplica" | ||
}; | ||
const credential = new DefaultAzureCredential(); | ||
const client = new SqlVirtualMachineManagementClient( | ||
credential, | ||
subscriptionId | ||
); | ||
const result = await client.sqlVirtualMachineTroubleshoot.beginTroubleshootAndWait( | ||
resourceGroupName, | ||
sqlVirtualMachineName, | ||
parameters | ||
); | ||
console.log(result); | ||
} | ||
|
||
async function main() { | ||
startSqlVirtualMachineTroubleshootingOperation(); | ||
} | ||
|
||
main().catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.