@@ -25,7 +25,7 @@ This API is idempotent, so user can either create a new grafana or update an exi
2525New-AzGrafana -Name azpstest-grafana -ResourceGroupName azpstest-gp -ApiKey Enabled -AutoGeneratedDomainNameLabelScope 'TenantReuse' -DeterministicOutboundIP 'Enabled' -IdentityType 'SystemAssigned' -Location eastus -PublicNetworkAccess 'Enabled' -SkuName Standard -ZoneRedundancy 'Enabled' -Tag @{"Environment"="Dev"}
2626
2727. Outputs
28- Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.Api20220801. IManagedGrafana
28+ Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.IManagedGrafana
2929. Notes
3030COMPLEX PARAMETER PROPERTIES
3131
@@ -37,7 +37,7 @@ GRAFANAINTEGRATIONAZUREMONITORWORKSPACEINTEGRATION <IAzureMonitorWorkspaceIntegr
3737https://learn.microsoft.com/powershell/module/az.dashboard/new-azgrafana
3838#>
3939function New-AzGrafana {
40- [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.Api20220801. IManagedGrafana ])]
40+ [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.IManagedGrafana ])]
4141[CmdletBinding (DefaultParameterSetName = ' CreateExpanded' , PositionalBinding = $false , SupportsShouldProcess , ConfirmImpact = ' Medium' )]
4242param (
4343 [Parameter (Mandatory )]
@@ -61,90 +61,100 @@ param(
6161 # The ID of the target subscription.
6262 ${SubscriptionId} ,
6363
64- [Parameter (Mandatory )]
65- [ArgumentCompleter ([ Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.ApiKey ] )]
64+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
65+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.PSArgumentCompleterAttribute ( " Disabled " , " Enabled " )]
6666 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
67- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.ApiKey ]
67+ [System.String ]
6868 # The api key setting of the Grafana instance.
6969 ${ApiKey} ,
7070
71- [Parameter (Mandatory )]
72- [ArgumentCompleter ([ Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.AutoGeneratedDomainNameLabelScope ] )]
71+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
72+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.PSArgumentCompleterAttribute ( " TenantReuse " )]
7373 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
74- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.AutoGeneratedDomainNameLabelScope ]
74+ [System.String ]
7575 # Scope for dns deterministic name hash calculation.
7676 ${AutoGeneratedDomainNameLabelScope} ,
7777
78- [Parameter (Mandatory )]
79- [ArgumentCompleter ([ Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.DeterministicOutboundIP ] )]
78+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
79+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.PSArgumentCompleterAttribute ( " Disabled " , " Enabled " )]
8080 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
81- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.DeterministicOutboundIP ]
81+ [System.String ]
8282 # Whether a Grafana instance uses deterministic outbound IPs.
8383 ${DeterministicOutboundIP} ,
8484
85- [Parameter (Mandatory )]
86- [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.ManagedServiceIdentityType ])]
85+ [Parameter (ParameterSetName = ' CreateExpanded' , Mandatory )]
8786 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
88- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.ManagedServiceIdentityType ]
89- # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed) .
90- ${IdentityType } ,
87+ [System.Management.Automation.SwitchParameter ]
88+ # Determines whether to enable a system-assigned identity for the resource .
89+ ${EnableSystemAssignedIdentity } ,
9190
92- [Parameter ()]
91+ [Parameter (ParameterSetName = ' CreateExpanded' )]
92+ [AllowEmptyCollection ()]
9393 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
94- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.Api30.IUserAssignedIdentities ]))]
95- [System.Collections.Hashtable ]
96- # The set of user assigned identities associated with the resource.
97- # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
98- # The dictionary values can be empty objects ({}) in requests.
99- ${IdentityUserAssignedIdentity} ,
94+ [System.String []]
95+ # The array of user assigned identities associated with the resource.
96+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
97+ ${UserAssignedIdentity} ,
10098
101- [Parameter (Mandatory )]
99+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
102100 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
103101 [System.String ]
104102 # The geo-location where the grafana resource lives
105103 ${Location} ,
106104
107- [Parameter ()]
105+ [Parameter (ParameterSetName = ' CreateExpanded ' )]
108106 [AllowEmptyCollection ()]
109107 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
110- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.Api20220801. IAzureMonitorWorkspaceIntegration []]
108+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.IAzureMonitorWorkspaceIntegration []]
111109 # The MonitorWorkspaceIntegration of Azure Managed Grafana.
112- # To construct, see NOTES section for MONITORWORKSPACEINTEGRATION properties and create a hash table.
113110 ${MonitorWorkspaceIntegration} ,
114111
115- [Parameter (Mandatory )]
116- [ArgumentCompleter ([ Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.PublicNetworkAccess ] )]
112+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
113+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.PSArgumentCompleterAttribute ( " Enabled " , " Disabled " )]
117114 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
118- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.PublicNetworkAccess ]
115+ [System.String ]
119116 # Indicate the state for enable or disable traffic over the public interface.
120117 ${PublicNetworkAccess} ,
121118
122- [Parameter (Mandatory )]
119+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
123120 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
124121 [System.String ]
125122 # The Sku of the grafana resource.
126123 ${SkuName} ,
127124
128- [Parameter ()]
125+ [Parameter (ParameterSetName = ' CreateExpanded ' )]
129126 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
130- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.Api20220801. IManagedGrafanaTags ]))]
127+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Models.IManagedGrafanaTags ]))]
131128 [System.Collections.Hashtable ]
132129 # The tags for grafana resource.
133130 ${Tag} ,
134131
135- [Parameter (Mandatory )]
136- [ArgumentCompleter ([ Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.ZoneRedundancy ] )]
132+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
133+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.PSArgumentCompleterAttribute ( " Disabled " , " Enabled " )]
137134 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
138- [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Support.ZoneRedundancy ]
135+ [System.String ]
139136 # The zone redundancy setting of the Grafana instance.
140137 ${ZoneRedundancy} ,
141138
139+ [Parameter (ParameterSetName = ' CreateViaJsonFilePath' , Mandatory )]
140+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
141+ [System.String ]
142+ # Path of Json file supplied to the Create operation
143+ ${JsonFilePath} ,
144+
145+ [Parameter (ParameterSetName = ' CreateViaJsonString' , Mandatory )]
146+ [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Body' )]
147+ [System.String ]
148+ # Json string supplied to the Create operation
149+ ${JsonString} ,
150+
142151 [Parameter ()]
143152 [Alias (' AzureRMContext' , ' AzureCredential' )]
144153 [ValidateNotNull ()]
145154 [Microsoft.Azure.PowerShell.Cmdlets.Dashboard.Category (' Azure' )]
146155 [System.Management.Automation.PSObject ]
147- # The credentials, account, tenant, and subscription used for communication with Azure.
156+ # The DefaultProfile parameter is not functional.
157+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
148158 ${DefaultProfile} ,
149159
150160 [Parameter ()]
0 commit comments