Skip to content
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

The resource name for Microsoft.DataFactory/factories/globalParameters@2018-06-01 not working as expected #2393

Open
chinmay-desai-09 opened this issue Dec 18, 2024 · 1 comment

Comments

@chinmay-desai-09
Copy link

Bicep version
VS Code Extension v0.32.4

Describe the bug
For resource "Microsoft.DataFactory/factories/globalParameters@2018-06-01", the resource name must be set to 'default'. If we use any other resource name, then the deployment fails with following error;

##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.
##[error]Details:
##[error]GlobalParameterNameNotAllowed: Invalid Global Parameter resource name. Please use default as resource name.

To Reproduce
I'm using the following bicep code

resource globalParameterResources 'Microsoft.DataFactory/factories/globalParameters@2018-06-01' = {
  parent: adf2
  name: 'deployment-adf-gp'
  properties: {
    pStorageAccountAddress: {
      type: 'string'
      value: 'testsa'
    }
  }
}

The deployment throws this error;

##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.
##[error]Details:
##[error]GlobalParameterNameNotAllowed: Invalid Global Parameter resource name. Please use default as resource name.

Additional context

The explanation in this document (https://learn.microsoft.com/en-us/azure/templates/microsoft.datafactory/factories/globalparameters?pivots=deployment-language-arm-template#microsoftdatafactoryfactoriesglobalparameters-1) also seems incorrect.

Image

Min Length is 1 and the Max Length is 1

@stephaniezyen
Copy link
Contributor

This is a Microsoft.DataFactory RP issue - please open a support ticket with them

@stephaniezyen stephaniezyen transferred this issue from Azure/bicep Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants