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

Need two additional fields for azure.subscription.web.apps {} #5056

Open
mm-weber opened this issue Dec 30, 2024 · 0 comments
Open

Need two additional fields for azure.subscription.web.apps {} #5056

mm-weber opened this issue Dec 30, 2024 · 0 comments
Labels
azure enhancement New feature or request

Comments

@mm-weber
Copy link
Contributor

FTP

Using $ az resource show --resource-group <resource-group-name> --name ftp --namespace Microsoft.Web --resource-type basicPublishingCredentialsPolicies --parent sites/<web-app-name>, resulting in:

{
  "extendedLocation": null,
  "id": "/subscriptions/xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/<resource-group-name>/providers/Microsoft.Web/sites/<web-app-name>/basicPublishingCredentialsPolicies/ftp",
  "identity": null,
  "kind": null,
  "location": "East US",
  "managedBy": null,
  "name": "ftp",
  "plan": null,
  "properties": {
    "allow": false
  },
  "resourceGroup": "<resource-group-name>",
  "sku": null,
  "tags": null,
  "type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies"
}

Acceess to SCM-related fields:

  "properties": {
    "allow": false
  },

SCM

Using $ az resource show --resource-group <resource-group> --name scm --namespace Microsoft.Web --resource-type basicPublishingCredentialsPolicies --parent sites/<web-app-name>, resulting in:

{
  "extendedLocation": null,
  "id": "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/<resource-group-name>/providers/Microsoft.Web/sites/<web-app-name>/basicPublishingCredentialsPolicies/scm",
  "identity": null,
  "kind": null,
  "location": "East US",
  "managedBy": null,
  "name": "scm",
  "plan": null,
  "properties": {
    "allow": true
  },
  "resourceGroup": "<resource-group-name>",
  "sku": null,
  "tags": null,
  "type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies"
}

Acceess to SCM-related fields:

  "properties": {
    "allow": false
  },

We need possibly to use this:
https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice#WebAppsClientListBasicPublishingCredentialsPoliciesOptions

@mm-weber mm-weber added azure enhancement New feature or request labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant