AnthonyC
01/20/2025, 5:04 PMMarvin
01/20/2025, 5:05 PMbash
az ad sp create-for-rbac --name <your-service-principal-name> --role Contributor --scopes /subscriptions/<your-subscription-id>
This command will output details including an appId
, password
, and tenant
.
2. Configure the Credential Block: In Prefect, when configuring your ACI work pool, you will need to input these credentials (specifically the appId
and password
) into the credential block. The password
here refers to the client secret generated for the service principal.
3. Update the ACI Work Pool Configuration: Navigate to the Edit page of your ACI work pool in the Prefect UI and input the necessary details in the credential block.
For more detailed steps, you can refer to the Prefect ACI Worker Guide.
If you need further assistance with setting up or have any specific questions, feel free to ask!AnthonyC
01/20/2025, 6:06 PMMarvin
01/20/2025, 6:06 PMbash
az ad sp create-for-rbac --name <your-service-principal-name> --role Contributor --scopes /subscriptions/<your-subscription-id>/resourceGroups/<your-resource-group-name>
2. Specific Resource Scope: If your operations are limited to specific resources, you can also scope the service principal to individual resources, though this is less common for broad tasks like managing container instances.
3. Collaboration: If you lack permissions to create roles, you may need to collaborate with someone in your organization who has the necessary permissions to create a service principal with the required scope.
4. Custom Roles: If Contributor access is too broad and you have the ability to create custom roles, you might consider creating a custom role with just the permissions you need and assigning it at a more limited scope.
Remember to replace placeholders like <your-service-principal-name>
, <your-subscription-id>
, and <your-resource-group-name>
with your actual values.
If you have any more questions or need further assistance, feel free to ask!AnthonyC
01/20/2025, 6:16 PMMarvin
01/20/2025, 6:16 PMAnthonyC
01/20/2025, 6:22 PMMarvin
01/20/2025, 6:22 PM