Skip to content

Commit 1342a1f

Browse files
Alex-wdywyunchi-ms
andauthored
[UX] Fix the issues in UX files (Azure#20198)
* update the UX files * update the UX files * update the UX files * update the UX files * Remove the suppressed exceptions * Update subscriptions.json Co-authored-by: wyunchi-ms <[email protected]> Co-authored-by: Yunchi Wang <[email protected]>
1 parent 891db45 commit 1342a1f

File tree

8 files changed

+32
-42
lines changed

8 files changed

+32
-42
lines changed

src/Resources/Resources/UX/Microsoft.Resources/subscriptions.json renamed to src/Accounts/Accounts/UX/Microsoft.Accounts/subscriptions.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"name":"Get-AzSubscription",
1010
"description":"Get subscriptions that the current account can access.",
11-
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/subscriptions",
11+
"path":"/subscriptions/{subscriptionId}",
1212
"confirmation":false,
1313
"help":{
1414
"learnMore":{
@@ -17,8 +17,7 @@
1717
"parameterSets":[
1818
{
1919
"parameters":[
20-
"[[-ResourceGroupName] <System.String>]",
21-
"[[-TenantId] <String>]"
20+
"[[-SubscriptionId] <String>]"
2221
]
2322
}
2423
]
@@ -28,16 +27,12 @@
2827
"description":"Get subscriptions that the current account can access.",
2928
"parameters":[
3029
{
31-
"name":"-ResourceGroupName",
32-
"value":"[path.resourceGroupName]"
33-
},
34-
{
35-
"name":"-TenantId",
36-
"value":"[path.TenantId]"
30+
"name":"-SubscriptionId",
31+
"value":"[path.subscriptionId]"
3732
}
3833
]
3934
}
4035
]
4136
}
4237
]
43-
}
38+
}

src/DataFactory/DataFactories/UX/Microsoft.Datafactory/factories.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
{
3030
"name":"-ResourceGroupName",
3131
"value":"[path.resourceGroupName]"
32+
},
33+
{
34+
"name":"-Name",
35+
"value":"[path.dataFactoryName]"
3236
}
3337
]
3438
}
@@ -58,6 +62,10 @@
5862
{
5963
"name":"-ResourceGroupName",
6064
"value":"[path.resourceGroupName]"
65+
},
66+
{
67+
"name":"-Name",
68+
"value":"[path.dataFactoryName]"
6169
}
6270
]
6371
}

src/Sql/Sql/UX/Microsoft.Sql/sqlDatabase.json

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,34 +87,39 @@
8787
},
8888
{
8989
"name":"Suspend-AzSqlDatabase",
90-
"description":"Restarts an Azure virtual machine.",
91-
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{VMName}",
90+
"description":"Suspends a SQL Data Warehouse database.",
91+
"path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{ServerName}/databases",
9292
"confirmation":false,
9393
"help":{
9494
"learnMore":{
95-
"url":"https://learn.microsoft.com/powershell/module/az.compute/restart-azvm"
95+
"url":"https://learn.microsoft.com/powershell/module/az.sql/suspend-azsqldatabase"
9696
},
9797
"parameterSets":[
9898
{
9999
"parameters":[
100-
"[-ResourceGroupName] <System.String>",
101-
"[-VMName] <System.String>"
100+
"[[-ResourceGroupName] <System.String>]",
101+
"[[-ServerName] <String>]",
102+
"[[-DatabaseName] <String>]"
102103
]
103104
}
104105
]
105106
},
106107
"examples":[
107108
{
108-
"description":"Restarts an Azure virtual machine.",
109+
"description":"Suspends a SQL Data Warehouse database.",
109110
"parameters":[
110-
{
111-
"name":"-ResourceGroupName",
112-
"value":"[path.resourceGroupName]"
113-
},
114-
{
115-
"name":"-Name",
116-
"value":"[path.VMName]"
117-
}
111+
{
112+
"name":"-ResourceGroupName",
113+
"value":"[path.resourceGroupName]"
114+
},
115+
{
116+
"name":"-ServerName",
117+
"value":"[path.ServerName]"
118+
},
119+
{
120+
"name":"-DatabaseName",
121+
"value":"[path.DatabaseName]"
122+
}
118123
]
119124
}
120125
]

tools/StaticAnalysis/Exceptions/Az.DataFactory/UXMetadataIssues.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/StaticAnalysis/Exceptions/Az.Monitor/UXMetadataIssues.csv

Lines changed: 0 additions & 7 deletions
This file was deleted.

tools/StaticAnalysis/Exceptions/Az.Resources/UXMetadataIssues.csv

Lines changed: 0 additions & 5 deletions
This file was deleted.

tools/StaticAnalysis/Exceptions/Az.Sql/UXMetadataIssues.csv

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)