diff --git a/.github/workflows/ms.netapp.netappaccounts.yml b/.github/workflows/ms.netapp.netappaccounts.yml index 78d240e171..4c3f7688d0 100644 --- a/.github/workflows/ms.netapp.netappaccounts.yml +++ b/.github/workflows/ms.netapp.netappaccounts.yml @@ -106,8 +106,7 @@ jobs: - name: 'Using test file [${{ matrix.moduleTestFilePaths }}]' uses: ./.github/actions/templates/validateModuleDeployment with: - templateFilePath: '${{ env.modulePath }}/deploy.bicep' - parameterFilePath: '${{ env.modulePath }}/${{ matrix.moduleTestFilePaths }}' + templateFilePath: '${{ env.modulePath }}/${{ matrix.moduleTestFilePaths }}' location: '${{ env.location }}' resourceGroupName: '${{ env.resourceGroupName }}' subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' diff --git a/modules/Microsoft.NetApp/netAppAccounts/.test/min.parameters.json b/modules/Microsoft.NetApp/netAppAccounts/.test/min.parameters.json deleted file mode 100644 index 029d5ebc09..0000000000 --- a/modules/Microsoft.NetApp/netAppAccounts/.test/min.parameters.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "value": "<>-az-anf-min-001" - } - } -} diff --git a/modules/Microsoft.NetApp/netAppAccounts/.test/min/deploy.test.bicep b/modules/Microsoft.NetApp/netAppAccounts/.test/min/deploy.test.bicep new file mode 100644 index 0000000000..e18c83aa83 --- /dev/null +++ b/modules/Microsoft.NetApp/netAppAccounts/.test/min/deploy.test.bicep @@ -0,0 +1,37 @@ +targetScope = 'subscription' + +// ========== // +// Parameters // +// ========== // +@description('Optional. The name of the resource group to deploy for testing purposes.') +@maxLength(90) +param resourceGroupName string = 'ms.netapp.netappaccounts-${serviceShort}-rg' + +@description('Optional. The location to deploy resources to.') +param location string = deployment().location + +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints.') +param serviceShort string = 'nanaamin' + +// =========== // +// Deployments // +// =========== // + +// General resources +// ================= +resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { + name: resourceGroupName + location: location +} + +// ============== // +// Test Execution // +// ============== // + +module testDeployment '../../deploy.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name)}-test-${serviceShort}' + params: { + name: '<>${serviceShort}001' + } +} diff --git a/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3.parameters.json b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3.parameters.json deleted file mode 100644 index 8718b5fdab..0000000000 --- a/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3.parameters.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "value": "<>-az-anf-nfs3-001" - }, - "lock": { - "value": "CanNotDelete" - }, - "capacityPools": { - "value": [ - { - "name": "<>-az-anfcp-x-001", - "serviceLevel": "Premium", - "size": 4398046511104, - "volumes": [ - { - "name": "anf3-vol01-nfsv3", - "usageThreshold": 107374182400, - "protocolTypes": [ - "NFSv3" - ], - "exportPolicyRules": [ - { - "ruleIndex": 1, - "unixReadOnly": false, - "unixReadWrite": true, - "nfsv3": true, - "nfsv41": false, - "allowedClients": "0.0.0.0/0" - } - ], - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004", - "roleAssignments": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - }, - { - "name": "anf3-vol02-nfsv3", - "usageThreshold": 107374182400, - "protocolTypes": [ - "NFSv3" - ], - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004" - } - ], - "roleAssignments": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - }, - { - "name": "<>-az-anfcp-x-002", - "serviceLevel": "Premium", - "size": 4398046511104, - "volumes": [], - "roleAssignments": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - } - ] - }, - "roleAssignments": { - "value": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - }, - "tags": { - "value": { - "Environment": "Non-Prod", - "Contact": "test.user@testcompany.com", - "PurchaseOrder": "1234", - "CostCenter": "7890", - "ServiceName": "DeploymentValidation", - "Role": "DeploymentValidation" - } - } - } -} diff --git a/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3/dependencies.bicep b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3/dependencies.bicep new file mode 100644 index 0000000000..1e484ccd9a --- /dev/null +++ b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3/dependencies.bicep @@ -0,0 +1,47 @@ +@description('Optional. The location to deploy to.') +param location string = resourceGroup().location + +@description('Required. The name of the Virtual Network to create.') +param virtualNetworkName string + +@description('Required. The name of the Managed Identity to create.') +param managedIdentityName string + +resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-01-01' = { + name: virtualNetworkName + location: location + properties: { + addressSpace: { + addressPrefixes: [ + '10.0.0.0/24' + ] + } + subnets: [ + { + name: 'defaultSubnet' + properties: { + addressPrefix: '10.0.0.0/24' + delegations: [ + { + name: 'netappDel' + properties: { + serviceName: 'Microsoft.Netapp/volumes' + } + } + ] + } + } + ] + } +} + +resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = { + name: managedIdentityName + location: location +} + +@description('The resource ID of the created Virtual Network Subnet.') +output subnetResourceId string = virtualNetwork.properties.subnets[0].id + +@description('The principal ID of the created Managed Identity.') +output managedIdentityPrincipalId string = managedIdentity.properties.principalId diff --git a/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3/deploy.test.bicep b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3/deploy.test.bicep new file mode 100644 index 0000000000..912db036be --- /dev/null +++ b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs3/deploy.test.bicep @@ -0,0 +1,128 @@ +targetScope = 'subscription' + +// ========== // +// Parameters // +// ========== // +@description('Optional. The name of the resource group to deploy for testing purposes.') +@maxLength(90) +param resourceGroupName string = 'ms.netapp.netappaccounts-${serviceShort}-rg' + +@description('Optional. The location to deploy resources to.') +param location string = deployment().location + +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints.') +param serviceShort string = 'nanaanfs3' + +// =========== // +// Deployments // +// =========== // + +// General resources +// ================= +resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { + name: resourceGroupName + location: location +} + +module resourceGroupResources 'dependencies.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name, location)}-paramNested' + params: { + virtualNetworkName: 'dep-<>-vnet-${serviceShort}' + managedIdentityName: 'dep-<>-msi-${serviceShort}' + } +} + +// ============== // +// Test Execution // +// ============== // + +module testDeployment '../../deploy.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name)}-test-${serviceShort}' + params: { + name: '<>${serviceShort}001' + capacityPools: [ + { + name: '<>-${serviceShort}-cp-001' + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + serviceLevel: 'Premium' + size: 4398046511104 + volumes: [ + { + exportPolicyRules: [ + { + allowedClients: '0.0.0.0/0' + nfsv3: true + nfsv41: false + ruleIndex: 1 + unixReadOnly: false + unixReadWrite: true + } + ] + name: '<>-${serviceShort}-vol-001' + protocolTypes: [ + 'NFSv3' + ] + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + subnetResourceId: resourceGroupResources.outputs.subnetResourceId + usageThreshold: 107374182400 + } + { + name: '<>-${serviceShort}-vol-002' + protocolTypes: [ + 'NFSv3' + ] + subnetResourceId: resourceGroupResources.outputs.subnetResourceId + usageThreshold: 107374182400 + } + ] + } + { + name: '<>-${serviceShort}-cp-002' + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + serviceLevel: 'Premium' + size: 4398046511104 + volumes: [] + } + ] + lock: 'CanNotDelete' + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + tags: { + Contact: 'test.user@testcompany.com' + CostCenter: '7890' + Environment: 'Non-Prod' + PurchaseOrder: '1234' + Role: 'DeploymentValidation' + ServiceName: 'DeploymentValidation' + } + } +} diff --git a/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41.parameters.json b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41.parameters.json deleted file mode 100644 index 2f961c1442..0000000000 --- a/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41.parameters.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "value": "<>-az-anf-nfs41-001" - }, - "capacityPools": { - "value": [ - { - "name": "<>-az-anfcp-x-001", - "serviceLevel": "Premium", - "size": 4398046511104, - "volumes": [ - { - "name": "anf4-vol01-nfsv41", - "usageThreshold": 107374182400, - "protocolTypes": [ - "NFSv4.1" - ], - "exportPolicyRules": [ - { - "ruleIndex": 1, - "unixReadOnly": false, - "unixReadWrite": true, - "nfsv3": false, - "nfsv41": true, - "allowedClients": "0.0.0.0/0" - } - ], - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004", - "roleAssignments": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - }, - { - "name": "anf4-vol02-nfsv41", - "usageThreshold": 107374182400, - "protocolTypes": [ - "NFSv4.1" - ], - "exportPolicyRules": [ - { - "ruleIndex": 1, - "unixReadOnly": false, - "unixReadWrite": true, - "nfsv3": false, - "nfsv41": true, - "allowedClients": "0.0.0.0/0" - } - ], - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004" - } - ], - "roleAssignments": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - }, - { - "name": "<>-az-anfcp-x-002", - "serviceLevel": "Premium", - "size": 4398046511104, - "volumes": [], - "roleAssignments": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - } - ] - }, - "roleAssignments": { - "value": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - }, - "tags": { - "value": { - "Environment": "Non-Prod", - "Contact": "test.user@testcompany.com", - "PurchaseOrder": "1234", - "CostCenter": "7890", - "ServiceName": "DeploymentValidation", - "Role": "DeploymentValidation" - } - } - } -} diff --git a/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41/dependencies.bicep b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41/dependencies.bicep new file mode 100644 index 0000000000..1e484ccd9a --- /dev/null +++ b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41/dependencies.bicep @@ -0,0 +1,47 @@ +@description('Optional. The location to deploy to.') +param location string = resourceGroup().location + +@description('Required. The name of the Virtual Network to create.') +param virtualNetworkName string + +@description('Required. The name of the Managed Identity to create.') +param managedIdentityName string + +resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-01-01' = { + name: virtualNetworkName + location: location + properties: { + addressSpace: { + addressPrefixes: [ + '10.0.0.0/24' + ] + } + subnets: [ + { + name: 'defaultSubnet' + properties: { + addressPrefix: '10.0.0.0/24' + delegations: [ + { + name: 'netappDel' + properties: { + serviceName: 'Microsoft.Netapp/volumes' + } + } + ] + } + } + ] + } +} + +resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = { + name: managedIdentityName + location: location +} + +@description('The resource ID of the created Virtual Network Subnet.') +output subnetResourceId string = virtualNetwork.properties.subnets[0].id + +@description('The principal ID of the created Managed Identity.') +output managedIdentityPrincipalId string = managedIdentity.properties.principalId diff --git a/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41/deploy.test.bicep b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41/deploy.test.bicep new file mode 100644 index 0000000000..2dfbba8ce2 --- /dev/null +++ b/modules/Microsoft.NetApp/netAppAccounts/.test/nfs41/deploy.test.bicep @@ -0,0 +1,137 @@ +targetScope = 'subscription' + +// ========== // +// Parameters // +// ========== // +@description('Optional. The name of the resource group to deploy for testing purposes.') +@maxLength(90) +param resourceGroupName string = 'ms.netapp.netappaccounts-${serviceShort}-rg' + +@description('Optional. The location to deploy resources to.') +param location string = deployment().location + +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints.') +param serviceShort string = 'nanaanfs41' + +// =========== // +// Deployments // +// =========== // + +// General resources +// ================= +resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { + name: resourceGroupName + location: location +} + +module resourceGroupResources 'dependencies.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name, location)}-paramNested' + params: { + virtualNetworkName: 'dep-<>-vnet-${serviceShort}' + managedIdentityName: 'dep-<>-msi-${serviceShort}' + } +} + +// ============== // +// Test Execution // +// ============== // + +module testDeployment '../../deploy.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name)}-test-${serviceShort}' + params: { + name: '<>${serviceShort}001' + capacityPools: [ + { + name: '<>-${serviceShort}-cp-001' + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + serviceLevel: 'Premium' + size: 4398046511104 + volumes: [ + { + exportPolicyRules: [ + { + allowedClients: '0.0.0.0/0' + nfsv3: false + nfsv41: true + ruleIndex: 1 + unixReadOnly: false + unixReadWrite: true + } + ] + name: '<>-${serviceShort}-vol-001' + protocolTypes: [ + 'NFSv4.1' + ] + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + subnetResourceId: resourceGroupResources.outputs.subnetResourceId + usageThreshold: 107374182400 + } + { + exportPolicyRules: [ + { + allowedClients: '0.0.0.0/0' + nfsv3: false + nfsv41: true + ruleIndex: 1 + unixReadOnly: false + unixReadWrite: true + } + ] + name: '<>-${serviceShort}-vol-002' + protocolTypes: [ + 'NFSv4.1' + ] + subnetResourceId: resourceGroupResources.outputs.subnetResourceId + usageThreshold: 107374182400 + } + ] + } + { + name: '<>-${serviceShort}-cp-002' + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + serviceLevel: 'Premium' + size: 4398046511104 + volumes: [] + } + ] + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + tags: { + Contact: 'test.user@testcompany.com' + CostCenter: '7890' + Environment: 'Non-Prod' + PurchaseOrder: '1234' + Role: 'DeploymentValidation' + ServiceName: 'DeploymentValidation' + } + } +} diff --git a/modules/Microsoft.NetApp/netAppAccounts/readme.md b/modules/Microsoft.NetApp/netAppAccounts/readme.md index b7aa25295b..fa56712ca7 100644 --- a/modules/Microsoft.NetApp/netAppAccounts/readme.md +++ b/modules/Microsoft.NetApp/netAppAccounts/readme.md @@ -172,9 +172,9 @@ The following module usage examples are retrieved from the content of the files ```bicep module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { - name: '${uniqueString(deployment().name)}-NetAppAccounts' + name: '${uniqueString(deployment().name)}-test-nanaamin' params: { - name: '<>-az-anf-min-001' + name: '<>nanaamin001' } } ``` @@ -192,7 +192,7 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { "contentVersion": "1.0.0.0", "parameters": { "name": { - "value": "<>-az-anf-min-001" + "value": "<>nanaamin001" } } } @@ -209,18 +209,18 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { ```bicep module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { - name: '${uniqueString(deployment().name)}-NetAppAccounts' + name: '${uniqueString(deployment().name)}-test-nanaanfs3' params: { // Required parameters - name: '<>-az-anf-nfs3-001' + name: '<>nanaanfs3001' // Non-required parameters capacityPools: [ { - name: '<>-az-anfcp-x-001' + name: '<>-nanaanfs3-cp-001' roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } @@ -239,37 +239,37 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { unixReadWrite: true } ] - name: 'anf3-vol01-nfsv3' + name: '<>-nanaanfs3-vol-001' protocolTypes: [ 'NFSv3' ] roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } ] - subnetResourceId: '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004' + subnetResourceId: '' usageThreshold: 107374182400 } { - name: 'anf3-vol02-nfsv3' + name: '<>-nanaanfs3-vol-002' protocolTypes: [ 'NFSv3' ] - subnetResourceId: '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004' + subnetResourceId: '' usageThreshold: 107374182400 } ] } { - name: '<>-az-anfcp-x-002' + name: '<>-nanaanfs3-cp-002' roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } @@ -283,7 +283,7 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } @@ -314,17 +314,17 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { "parameters": { // Required parameters "name": { - "value": "<>-az-anf-nfs3-001" + "value": "<>nanaanfs3001" }, // Non-required parameters "capacityPools": { "value": [ { - "name": "<>-az-anfcp-x-001", + "name": "<>-nanaanfs3-cp-001", "roleAssignments": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" } @@ -343,37 +343,37 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { "unixReadWrite": true } ], - "name": "anf3-vol01-nfsv3", + "name": "<>-nanaanfs3-vol-001", "protocolTypes": [ "NFSv3" ], "roleAssignments": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" } ], - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004", + "subnetResourceId": "", "usageThreshold": 107374182400 }, { - "name": "anf3-vol02-nfsv3", + "name": "<>-nanaanfs3-vol-002", "protocolTypes": [ "NFSv3" ], - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004", + "subnetResourceId": "", "usageThreshold": 107374182400 } ] }, { - "name": "<>-az-anfcp-x-002", + "name": "<>-nanaanfs3-cp-002", "roleAssignments": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" } @@ -391,7 +391,7 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { "value": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" } @@ -422,18 +422,18 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { ```bicep module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { - name: '${uniqueString(deployment().name)}-NetAppAccounts' + name: '${uniqueString(deployment().name)}-test-nanaanfs41' params: { // Required parameters - name: '<>-az-anf-nfs41-001' + name: '<>nanaanfs41001' // Non-required parameters capacityPools: [ { - name: '<>-az-anfcp-x-001' + name: '<>-nanaanfs41-cp-001' roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } @@ -452,19 +452,19 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { unixReadWrite: true } ] - name: 'anf4-vol01-nfsv41' + name: '<>-nanaanfs41-vol-001' protocolTypes: [ 'NFSv4.1' ] roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } ] - subnetResourceId: '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004' + subnetResourceId: '' usageThreshold: 107374182400 } { @@ -478,21 +478,21 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { unixReadWrite: true } ] - name: 'anf4-vol02-nfsv41' + name: '<>-nanaanfs41-vol-002' protocolTypes: [ 'NFSv4.1' ] - subnetResourceId: '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004' + subnetResourceId: '' usageThreshold: 107374182400 } ] } { - name: '<>-az-anfcp-x-002' + name: '<>-nanaanfs41-cp-002' roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } @@ -505,7 +505,7 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } @@ -536,17 +536,17 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { "parameters": { // Required parameters "name": { - "value": "<>-az-anf-nfs41-001" + "value": "<>nanaanfs41001" }, // Non-required parameters "capacityPools": { "value": [ { - "name": "<>-az-anfcp-x-001", + "name": "<>-nanaanfs41-cp-001", "roleAssignments": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" } @@ -565,19 +565,19 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { "unixReadWrite": true } ], - "name": "anf4-vol01-nfsv41", + "name": "<>-nanaanfs41-vol-001", "protocolTypes": [ "NFSv4.1" ], "roleAssignments": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" } ], - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004", + "subnetResourceId": "", "usageThreshold": 107374182400 }, { @@ -591,21 +591,21 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { "unixReadWrite": true } ], - "name": "anf4-vol02-nfsv41", + "name": "<>-nanaanfs41-vol-002", "protocolTypes": [ "NFSv4.1" ], - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-004", + "subnetResourceId": "", "usageThreshold": 107374182400 } ] }, { - "name": "<>-az-anfcp-x-002", + "name": "<>-nanaanfs41-cp-002", "roleAssignments": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" } @@ -620,7 +620,7 @@ module netAppAccounts './Microsoft.NetApp/netAppAccounts/deploy.bicep' = { "value": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" }