Skip to content

Commit

Permalink
Removed redundant null values from UDT as per AVM (#4208)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr authored Nov 12, 2023
1 parent 9da4cb8 commit a25fe09
Show file tree
Hide file tree
Showing 157 changed files with 216 additions and 216 deletions.
4 changes: 2 additions & 2 deletions modules/aad/domain-service/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -285,7 +285,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/analysis-services/server/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -190,7 +190,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/api-management/service/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -519,7 +519,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/app-configuration/configuration-store/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -369,7 +369,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/app/container-app/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/app/job/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/app/managed-environment/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/automation/automation-account/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -518,7 +518,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/batch/batch-account/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -388,7 +388,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/cache/redis-enterprise/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -309,7 +309,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/cache/redis/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -391,7 +391,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/cdn/profile/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/cognitive-services/account/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -454,7 +454,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/availability-set/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/disk-encryption-set/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/disk/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/gallery/application/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ type roleAssignmentType = {
principalId: string

@sys.description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@sys.description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/gallery/image/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ type roleAssignmentType = {
principalId: string

@sys.description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@sys.description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/gallery/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ type roleAssignmentType = {
principalId: string

@sys.description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@sys.description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/image/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/proximity-placement-group/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
2 changes: 1 addition & 1 deletion modules/compute/ssh-public-key/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/compute/virtual-machine-scale-set/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand All @@ -707,7 +707,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/compute/virtual-machine/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -752,7 +752,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand All @@ -131,7 +131,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down
4 changes: 2 additions & 2 deletions modules/container-registry/registry/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ type roleAssignmentType = {
principalId: string

@description('Optional. The principal type of the assigned principal ID.')
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device' | null)?
principalType: ('ServicePrincipal' | 'Group' | 'User' | 'ForeignGroup' | 'Device')?

@description('Optional. The description of the role assignment.')
description: string?
Expand Down Expand Up @@ -510,7 +510,7 @@ type diagnosticSettingType = {
}[]?

@description('Optional. A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type.')
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics' | null)?
logAnalyticsDestinationType: ('Dedicated' | 'AzureDiagnostics')?

@description('Optional. Resource ID of the diagnostic log analytics workspace. For security reasons, it is recommended to set diagnostic settings to send data to either storage account, log analytics workspace or event hub.')
workspaceResourceId: string?
Expand Down
Loading

0 comments on commit a25fe09

Please sign in to comment.