Skip to content

[Az.SqlVirtualMachine] Fix a bug of parameter 'VirtualMachineResourceId' #23903

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 1 commit into from
Jan 9, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,6 @@ function New-AzSqlVM {
# Resource tags.
${Tag},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Category('Body')]
[System.String]
# ARM Resource id of underlying virtual machine created from SQL marketplace image.
${VirtualMachineResourceId},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.SqlVirtualMachine.Category('Body')]
[System.Security.SecureString]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,20 +185,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -174,20 +174,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -213,20 +213,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -274,20 +274,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -373,24 +373,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`AVAILABILITYGROUPCONFIGURATIONREPLICA <IAgReplica[]>`: Replica configurations.
- `[Commit <Commit?>]`: Replica commit mode in availability group.
- `[Failover <Failover?>]`: Replica failover mode in availability group.
- `[ReadableSecondary <ReadableSecondary?>]`: Replica readable secondary mode in availability group.
- `[Role <Role?>]`: Replica Role in availability group.
- `[SqlVirtualMachineInstanceId <String>]`: Sql VirtualMachine Instance Id.

`MULTISUBNETIPCONFIGURATION <IMultiSubnetIPConfiguration[]>`: List of multi subnet IP configurations for an AG listener.
- `SqlVirtualMachineInstance <String>`: SQL virtual machine instance resource id that are enrolled into the availability group listener.
- `[PrivateIPAddressIpaddress <String>]`: Private IP address bound to the availability group listener.
- `[PrivateIPAddressSubnetResourceId <String>]`: Subnet used to include private IP.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ New-AzSqlVM -Name <String> -ResourceGroupName <String> -Location <String> [-Subs
[-StorageConfigurationSettingDiskConfigurationType <DiskConfigurationType>]
[-StorageConfigurationSettingSqlSystemDbOnDataDisk]
[-StorageConfigurationSettingStorageWorkloadType <StorageWorkloadType>] [-Tag <Hashtable>]
[-VirtualMachineResourceId <String>] [-WsfcDomainCredentialsClusterBootstrapAccountPassword <SecureString>]
[-WsfcDomainCredentialsClusterBootstrapAccountPassword <SecureString>]
[-WsfcDomainCredentialsClusterOperatorAccountPassword <SecureString>]
[-WsfcDomainCredentialsSqlServiceAccountPassword <SecureString>] [-WsfcStaticIP <String>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
Expand Down Expand Up @@ -1376,21 +1376,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -VirtualMachineResourceId
ARM Resource id of underlying virtual machine created from SQL marketplace image.

```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -WsfcDomainCredentialsClusterBootstrapAccountPassword
Cluster bootstrap account password.

Expand Down Expand Up @@ -1493,7 +1478,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -213,20 +213,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -213,20 +213,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -213,20 +213,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -927,20 +927,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -367,20 +367,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## NOTES

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.


`INPUTOBJECT <ISqlVirtualMachineIdentity>`: Identity Parameter
- `[AvailabilityGroupListenerName <String>]`: Name of the availability group listener.
- `[Id <String>]`: Resource identity path
- `[ResourceGroupName <String>]`: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- `[SqlVirtualMachineGroupName <String>]`: Name of the SQL virtual machine group.
- `[SqlVirtualMachineName <String>]`: Name of the SQL virtual machine.
- `[SubscriptionId <String>]`: Subscription ID that identifies an Azure subscription.

## RELATED LINKS

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"Module","ClassName","Target","Severity","ProblemId","Description","Remediation"
"Az.SqlVirtualMachine","New-AzSqlVM","New-AzSqlVM","0","2000","The cmdlet 'New-AzSqlVM' no longer supports the parameter 'VirtualMachineResourceId' and no alias was found for the original parameter name.","Add the parameter 'VirtualMachineResourceId' back to the cmdlet 'New-AzSqlVM', or add an alias to the original parameter name."
"Az.SqlVirtualMachine","New-AzSqlVM","New-AzSqlVM","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzSqlVM' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzSqlVM'."