diff --git a/src/Resources/Resources/UX/Microsoft.Resources/subscriptions.json b/src/Accounts/Accounts/UX/Microsoft.Accounts/subscriptions.json similarity index 65% rename from src/Resources/Resources/UX/Microsoft.Resources/subscriptions.json rename to src/Accounts/Accounts/UX/Microsoft.Accounts/subscriptions.json index 5d6fcd771524..020605cfeb52 100644 --- a/src/Resources/Resources/UX/Microsoft.Resources/subscriptions.json +++ b/src/Accounts/Accounts/UX/Microsoft.Accounts/subscriptions.json @@ -8,7 +8,7 @@ { "name":"Get-AzSubscription", "description":"Get subscriptions that the current account can access.", - "path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/subscriptions", + "path":"/subscriptions/{subscriptionId}", "confirmation":false, "help":{ "learnMore":{ @@ -17,8 +17,7 @@ "parameterSets":[ { "parameters":[ - "[[-ResourceGroupName] ]", - "[[-TenantId] ]" + "[[-SubscriptionId] ]" ] } ] @@ -28,16 +27,12 @@ "description":"Get subscriptions that the current account can access.", "parameters":[ { - "name":"-ResourceGroupName", - "value":"[path.resourceGroupName]" - }, - { - "name":"-TenantId", - "value":"[path.TenantId]" + "name":"-SubscriptionId", + "value":"[path.subscriptionId]" } ] } ] } ] - } \ No newline at end of file + } diff --git a/src/Monitor/Monitor/UX/Microsoft.Monitor/components.json b/src/ApplicationInsights/ApplicationInsights/UX/Microsoft.ApplicationInsights/components.json similarity index 100% rename from src/Monitor/Monitor/UX/Microsoft.Monitor/components.json rename to src/ApplicationInsights/ApplicationInsights/UX/Microsoft.ApplicationInsights/components.json diff --git a/src/DataFactory/DataFactories/UX/Microsoft.Datafactory/factories.json b/src/DataFactory/DataFactories/UX/Microsoft.Datafactory/factories.json index da309f6790fe..d7346f6891c5 100644 --- a/src/DataFactory/DataFactories/UX/Microsoft.Datafactory/factories.json +++ b/src/DataFactory/DataFactories/UX/Microsoft.Datafactory/factories.json @@ -29,6 +29,10 @@ { "name":"-ResourceGroupName", "value":"[path.resourceGroupName]" + }, + { + "name":"-Name", + "value":"[path.dataFactoryName]" } ] } @@ -58,6 +62,10 @@ { "name":"-ResourceGroupName", "value":"[path.resourceGroupName]" + }, + { + "name":"-Name", + "value":"[path.dataFactoryName]" } ] } diff --git a/src/Sql/Sql/UX/Microsoft.Sql/sqlDatabase.json b/src/Sql/Sql/UX/Microsoft.Sql/sqlDatabase.json index ac39d821c562..69125e3c6c36 100644 --- a/src/Sql/Sql/UX/Microsoft.Sql/sqlDatabase.json +++ b/src/Sql/Sql/UX/Microsoft.Sql/sqlDatabase.json @@ -87,34 +87,39 @@ }, { "name":"Suspend-AzSqlDatabase", - "description":"Restarts an Azure virtual machine.", - "path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{VMName}", + "description":"Suspends a SQL Data Warehouse database.", + "path":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{ServerName}/databases", "confirmation":false, "help":{ "learnMore":{ - "url":"https://learn.microsoft.com/powershell/module/az.compute/restart-azvm" + "url":"https://learn.microsoft.com/powershell/module/az.sql/suspend-azsqldatabase" }, "parameterSets":[ { "parameters":[ - "[-ResourceGroupName] ", - "[-VMName] " + "[[-ResourceGroupName] ]", + "[[-ServerName] ]", + "[[-DatabaseName] ]" ] } ] }, "examples":[ { - "description":"Restarts an Azure virtual machine.", + "description":"Suspends a SQL Data Warehouse database.", "parameters":[ - { - "name":"-ResourceGroupName", - "value":"[path.resourceGroupName]" - }, - { - "name":"-Name", - "value":"[path.VMName]" - } + { + "name":"-ResourceGroupName", + "value":"[path.resourceGroupName]" + }, + { + "name":"-ServerName", + "value":"[path.ServerName]" + }, + { + "name":"-DatabaseName", + "value":"[path.DatabaseName]" + } ] } ] diff --git a/tools/StaticAnalysis/Exceptions/Az.DataFactory/UXMetadataIssues.csv b/tools/StaticAnalysis/Exceptions/Az.DataFactory/UXMetadataIssues.csv deleted file mode 100644 index 2dcb7dc7792a..000000000000 --- a/tools/StaticAnalysis/Exceptions/Az.DataFactory/UXMetadataIssues.csv +++ /dev/null @@ -1,2 +0,0 @@ -"Module","Severity","ResourceType","SubResourceType","Command","Description" -"Az.DataFactory","1","Microsoft.Datafactory","factories","Remove-AzDataFactoryV2","Cannot find a matched parameter set for example of Remove-AzDataFactoryV2" diff --git a/tools/StaticAnalysis/Exceptions/Az.Monitor/UXMetadataIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Monitor/UXMetadataIssues.csv deleted file mode 100644 index 682423da0b05..000000000000 --- a/tools/StaticAnalysis/Exceptions/Az.Monitor/UXMetadataIssues.csv +++ /dev/null @@ -1,7 +0,0 @@ -"Module","Severity","ResourceType","SubResourceType","Command","Description" -"Az.Monitor","1","Microsoft.Monitor","components","Get-AzApplicationInsights","Doc url is expect: https://learn.microsoft.com/powershell/module/az.monitor/get-azapplicationinsights but get: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsights" -"Az.Monitor","2","Microsoft.Monitor","components","Get-AzApplicationInsights","The path /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.insights/components/{name} doesn't contains the right resource tpye: Microsoft.Monitor" -"Az.Monitor","1","Microsoft.Monitor","components","Get-AzApplicationInsights","Cmdlet Get-AzApplicationInsights is not contained in Az.Monitor." -"Az.Monitor","1","Microsoft.Monitor","components","Remove-AzApplicationInsights","Doc url is expect: https://learn.microsoft.com/powershell/module/az.monitor/remove-azapplicationinsights but get: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsights" -"Az.Monitor","2","Microsoft.Monitor","components","Remove-AzApplicationInsights","The path /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.insights/components/{name} doesn't contains the right resource tpye: Microsoft.Monitor" -"Az.Monitor","1","Microsoft.Monitor","components","Remove-AzApplicationInsights","Cmdlet Remove-AzApplicationInsights is not contained in Az.Monitor." diff --git a/tools/StaticAnalysis/Exceptions/Az.Resources/UXMetadataIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Resources/UXMetadataIssues.csv deleted file mode 100644 index b3819ea496b3..000000000000 --- a/tools/StaticAnalysis/Exceptions/Az.Resources/UXMetadataIssues.csv +++ /dev/null @@ -1,5 +0,0 @@ -"Module","Severity","ResourceType","SubResourceType","Command","Description" -"Az.Resources","1","Microsoft.Resources","subscriptions","Get-AzSubscription","Doc url is expect: https://learn.microsoft.com/powershell/module/az.resources/get-azsubscription but get: https://learn.microsoft.com/powershell/module/az.accounts/get-azsubscription" -"Az.Resources","1","Microsoft.Resources","subscriptions","Get-AzSubscription","Cmdlet Get-AzSubscription is not contained in Az.Resources." -"Az.Resources","2","Microsoft.Resources","subscriptionsResourcegroups","Get-AzResourceGroup","The path /subscriptions/{subscriptionId}/resourceGroups/{name} doesn't contains the right resource tpye: Microsoft.Resources" -"Az.Resources","2","Microsoft.Resources","subscriptionsResourcegroups","Remove-AzResourceGroup","The path /subscriptions/{subscriptionId}/resourceGroups/{name} doesn't contains the right resource tpye: Microsoft.Resources" diff --git a/tools/StaticAnalysis/Exceptions/Az.Sql/UXMetadataIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Sql/UXMetadataIssues.csv deleted file mode 100644 index 64bef4386c55..000000000000 --- a/tools/StaticAnalysis/Exceptions/Az.Sql/UXMetadataIssues.csv +++ /dev/null @@ -1,4 +0,0 @@ -"Module","Severity","ResourceType","SubResourceType","Command","Description" -"Az.Sql","1","Microsoft.Sql","sqlDatabase","Suspend-AzSqlDatabase","Doc url is expect: https://learn.microsoft.com/powershell/module/az.sql/suspend-azsqldatabase but get: https://learn.microsoft.com/powershell/module/az.compute/restart-azvm" -"Az.Sql","2","Microsoft.Sql","sqlDatabase","Suspend-AzSqlDatabase","The path /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{VMName} doesn't contains the right resource tpye: Microsoft.Sql" -"Az.Sql","1","Microsoft.Sql","sqlDatabase","Suspend-AzSqlDatabase","Cannot find the defination of parameter Name in example"