Skip to content

[PS->Portal] Provide resource type of top 10 services used in Portal for SDK based cmdlets #20102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions src/Compute/Compute/UX/Microsoft.Compute/disks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"resourceType":"disks",
"apiVersion":"2022-07-02",
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.compute/#compute"
},
"commands":[
{
"name":"Get-AzDisk",
"description":"Gets the properties of a Managed disk.",
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}",
"confirmation":false,
"help":{
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.compute/get-azdisk"
},
"parameterSets":[
{
"parameters":[
"[[-ResourceGroupName] <System.String>]",
"[[-DiskName] <String>]"
]
}
]
},
"examples":[
{
"description":"Gets the properties of a Managed disk.",
"parameters":[
{
"name":"-ResourceGroupName",
"value":"[path.resourceGroupName]"
},
{
"name":"-DiskName",
"value":"[path.diskName]"
}
]
}
]
},
{
"name":"Remove-AzDisk",
"description":"Removes a disk.",
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}",
"confirmation":false,
"help":{
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.compute/remove-azdisk"
},
"parameterSets":[
{
"parameters":[
"[[-ResourceGroupName] <System.String>]",
"[[-DiskName] <String>]"
]
}
]
},
"examples":[
{
"description":"Removes a disk.",
"parameters":[
{
"name":"-ResourceGroupName",
"value":"[path.resourceGroupName]"
},
{
"name":"-DiskName",
"value":"[path.diskName]"
}
]
}
]
}
]
}
145 changes: 145 additions & 0 deletions src/Compute/Compute/UX/Microsoft.Compute/virtualMachines.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"resourceType":"subscriptions",
"apiVersion":"2022-08-01",
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.compute/#virtual-machines"
},
"commands":[
{
"name":"Get-AzVM",
"description":"Gets the properties of a virtual machine.",
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{VMName}",
"confirmation":false,
"help":{
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.compute/get-azvm"
},
"parameterSets":[
{
"parameters":[
"[[-ResourceGroupName] <System.String>]",
"[[-VMName] <String>]"
]
}
]
},
"examples":[
{
"description":"Gets the properties of a virtual machine.",
"parameters":[
{
"name":"-ResourceGroupName",
"value":"[path.resourceGroupName]"
},
{
"name":"-Name",
"value":"[path.VMName]"
}
]
}
]
},
{
"name":"Stop-AzVM",
"description":"Stops an Azure virtual machine.",
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{VMName}",
"confirmation":false,
"help":{
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.compute/stop-azvm"
},
"parameterSets":[
{
"parameters":[
"[-ResourceGroupName] <System.String>",
"[-VMName] <System.String>"
]
}
]
},
"examples":[
{
"description":"Stops an Azure virtual machine.",
"parameters":[
{
"name":"-ResourceGroupName",
"value":"[path.resourceGroupName]"
},
{
"name":"-Name",
"value":"[path.VMName]"
}
]
}
]
},
{
"name":"Start-AzVM",
"description":"Starts an Azure virtual machine.",
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{VMName}",
"confirmation":false,
"help":{
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.compute/start-azvm"
},
"parameterSets":[
{
"parameters":[
"[-ResourceGroupName] <System.String>",
"[-VMName] <System.String>"
]
}
]
},
"examples":[
{
"description":"Starts an Azure virtual machine.",
"parameters":[
{
"name":"-ResourceGroupName",
"value":"[path.resourceGroupName]"
},
{
"name":"-Name",
"value":"[path.VMName]"
}
]
}
]
},
{
"name":"Restart-AzVM",
"description":"Restarts an Azure virtual machine.",
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{VMName}",
"confirmation":false,
"help":{
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.compute/restart-azvm"
},
"parameterSets":[
{
"parameters":[
"[-ResourceGroupName] <System.String>",
"[-VMName] <System.String>"
]
}
]
},
"examples":[
{
"description":"Restarts an Azure virtual machine.",
"parameters":[
{
"name":"-ResourceGroupName",
"value":"[path.resourceGroupName]"
},
{
"name":"-Name",
"value":"[path.VMName]"
}
]
}
]
}
]
}
77 changes: 77 additions & 0 deletions src/CosmosDB/CosmosDB/UX/Microsoft.CosmosDB/databaseAccounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"resourceType": "databaseAccounts",
"apiVersion": "2022-02-15-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cosmosdb/#cosmosdb"
},
"commands": [
{
"name": "Get-AzCosmosDBAccount",
"description": "Get CosmosDB Account.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{name}",
"confirmation": false,
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cosmosdb/get-azcosmosdbaccount"
},
"parameterSets": [
{
"parameters": [
"[-Name <String>]",
"[-ResourceGroupName <String>]"
]
}
]
},
"examples": [
{
"description": "Get CosmosDB Account.",
"parameters": [
{
"name": "-ResourceGroupName",
"value": "[path.resourceGroupName]"
},
{
"name": "-Name",
"value": "[path.name]"
}
]
}
]
},
{
"name": "Remove-AzCosmosDBAccount",
"description": "Remove a CosmosDB Account.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{name}",
"confirmation": false,
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cosmosdb/remove-azcosmosdbaccount"
},
"parameterSets": [
{
"parameters": [
"[-Name <String>]",
"[-ResourceGroupName <String>]"
]
}
]
},
"examples": [
{
"description": "Remove a CosmosDB Account.",
"parameters": [
{
"name": "-ResourceGroupName",
"value": "[path.resourceGroupName]"
},
{
"name": "-Name",
"value": "[path.name]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"resourceType":"factories",
"apiVersion":"2018-06-01",
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.datafactory/#datafactory"
},
"commands":[
{
"name":"Get-AzDataFactoryV2",
"description":"Gets information about Data Factory.",
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{dataFactoryName}",
"confirmation":false,
"help":{
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.datafactory/get-azdatafactoryv2"
},
"parameterSets":[
{
"parameters":[
"[[-ResourceGroupName] <System.String>]"
]
}
]
},
"examples":[
{
"description":"Gets information about Data Factory.",
"parameters":[
{
"name":"-ResourceGroupName",
"value":"[path.resourceGroupName]"
}
]
}
]
},
{
"name":"Remove-AzDataFactoryV2",
"description":"Removes a data factory.",
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{dataFactoryName}",
"confirmation":false,
"help":{
"learnMore":{
"url":"https://learn.microsoft.com/powershell/module/az.datafactory/remove-azdatafactoryv2"
},
"parameterSets":[
{
"parameters":[
"[[-ResourceGroupName] <System.String>]"
]
}
]
},
"examples":[
{
"description":"Removes a data factory.",
"parameters":[
{
"name":"-ResourceGroupName",
"value":"[path.resourceGroupName]"
}
]
}
]
}
]
}
Loading