1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941
|
param location string
param environmentName string
param defaultNamePrefix string
param defaultName string
param principalId string
param tenantId string
param azdTags object
resource userassignedidentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-07-31-preview' = {
location: location
tags: azdTags
name: defaultName
}
resource configurationstore 'Microsoft.AppConfiguration/configurationStores@2024-05-01' = {
name: defaultName
sku: {
name: 'Standard'
}
properties: {
disableLocalAuth: true
createMode: 'Default'
dataPlaneProxy: {
authenticationMode: 'Pass-through'
privateLinkDelegation: 'Disabled'
}
publicNetworkAccess: 'Enabled'
}
location: location
tags: azdTags
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${userassignedidentity.id}': {}
}
}
}
output AZURE_APPCONFIG_ID string = configurationstore.id
output AZURE_APPCONFIG_NAME string = configurationstore.name
output AZURE_APPCONFIG_RESOURCE_GROUP string = resourceGroup().name
output AZURE_APPCONFIG_ENDPOINT string = configurationstore.properties.endpoint
resource aiservices_account 'Microsoft.CognitiveServices/accounts@2024-10-01' = {
kind: 'AIServices'
name: '${defaultName}-aiservices'
location: location
tags: azdTags
sku: {
name: 'S0'
}
properties: {
publicNetworkAccess: 'Enabled'
disableLocalAuth: true
customSubDomainName: '${defaultName}-aiservices'
networkAcls: {
defaultAction: 'Allow'
}
}
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${userassignedidentity.id}': {}
}
}
}
output AZURE_AI_AISERVICES_ID_AI string = aiservices_account.id
output AZURE_AI_AISERVICES_NAME_AI string = aiservices_account.name
output AZURE_AI_AISERVICES_RESOURCE_GROUP_AI string = resourceGroup().name
output AZURE_AI_AISERVICES_ENDPOINT_AI string = aiservices_account.properties.endpoint
resource searchservice 'Microsoft.Search/searchServices@2024-06-01-Preview' = {
name: defaultName
sku: {
name: 'basic'
}
properties: {
publicNetworkAccess: 'Disabled'
}
location: location
tags: azdTags
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${userassignedidentity.id}': {}
}
}
}
output AZURE_SEARCH_ID_SEARCH string = searchservice.id
output AZURE_SEARCH_NAME_SEARCH string = searchservice.name
output AZURE_SEARCH_RESOURCE_GROUP_SEARCH string = resourceGroup().name
output AZURE_SEARCH_ENDPOINT_SEARCH string = 'https://${searchservice.name}.search.windows.net/'
resource storageaccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
name: defaultName
location: location
tags: azdTags
kind: 'StorageV2'
sku: {
name: 'Standard_GRS'
}
properties: {
accessTier: 'Hot'
allowCrossTenantReplication: false
allowSharedKeyAccess: false
}
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${userassignedidentity.id}': {}
}
}
}
output AZURE_STORAGE_ID_STORAGE string = storageaccount.id
output AZURE_STORAGE_NAME_STORAGE string = storageaccount.name
output AZURE_STORAGE_RESOURCE_GROUP_STORAGE string = resourceGroup().name
resource blobservice 'Microsoft.Storage/storageAccounts/blobServices@2024-01-01' = {
parent: storageaccount
name: 'default'
}
output AZURE_BLOBS_ENDPOINT_STORAGE string = storageaccount.properties.primaryEndpoints.blob
resource vault 'Microsoft.KeyVault/vaults@2024-12-01-preview' = {
name: defaultName
properties: {
sku: {
family: 'A'
name: 'standard'
}
publicNetworkAccess: 'Enabled'
tenantId: tenantId
accessPolicies: []
enableRbacAuthorization: true
}
location: location
tags: azdTags
}
output AZURE_KEYVAULT_ID_VAULT string = vault.id
output AZURE_KEYVAULT_NAME_VAULT string = vault.name
output AZURE_KEYVAULT_RESOURCE_GROUP_VAULT string = resourceGroup().name
output AZURE_KEYVAULT_ENDPOINT_VAULT string = vault.properties.vaultUri
resource hub_workspace 'Microsoft.MachineLearningServices/workspaces@2024-04-01-preview' = {
kind: 'Hub'
properties: {
primaryUserAssignedIdentity: userassignedidentity.id
publicNetworkAccess: 'Enabled'
enableDataIsolation: true
v1LegacyMode: false
hbiWorkspace: false
managedNetwork: {
isolationMode: 'Disabled'
}
workspaceHubConfig: {
defaultWorkspaceResourceGroup: resourceGroup().id
}
storageAccount: storageaccount.id
keyVault: vault.id
}
name: '${defaultName}-hub'
location: location
tags: azdTags
sku: {
name: 'Basic'
tier: 'Basic'
}
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${userassignedidentity.id}': {}
}
}
}
output AZURE_AIFOUNDRY_HUB_ID_HUB string = hub_workspace.id
output AZURE_AIFOUNDRY_HUB_NAME_HUB string = hub_workspace.name
output AZURE_AIFOUNDRY_HUB_RESOURCE_GROUP_HUB string = resourceGroup().name
resource connection_buifsaivbkhdryzkibjl 'Microsoft.MachineLearningServices/workspaces/connections@2025-01-01-preview' = {
parent: hub_workspace
properties: {
authType: 'AAD'
isSharedToAll: true
sharedUserList: []
category: 'CognitiveSearch'
target: 'https://${searchservice.name}.search.windows.net/'
metadata: {
ApiType: 'Azure'
ResourceId: searchservice.id
location: location
}
}
name: guid(defaultName, 'connection', 'Hub', 'AISearch')
}
resource connection_hmdjuiutdbnirxnlxqbn 'Microsoft.MachineLearningServices/workspaces/connections@2025-01-01-preview' = {
parent: hub_workspace
properties: {
authType: 'AAD'
isSharedToAll: true
sharedUserList: []
category: 'AIServices'
target: aiservices_account.properties.endpoint
metadata: {
ApiType: 'Azure'
ResourceId: aiservices_account.id
location: location
}
}
name: guid(defaultName, 'connection', 'Hub', 'AIServices')
}
resource project_workspace 'Microsoft.MachineLearningServices/workspaces@2024-04-01-preview' = {
kind: 'Project'
properties: {
primaryUserAssignedIdentity: userassignedidentity.id
publicNetworkAccess: 'Enabled'
enableDataIsolation: true
v1LegacyMode: false
hbiWorkspace: false
workspaceHubConfig: {
defaultWorkspaceResourceGroup: resourceGroup().id
}
hubResourceId: hub_workspace.id
}
name: '${defaultName}-project'
location: location
tags: azdTags
sku: {
name: 'Basic'
tier: 'Basic'
}
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${userassignedidentity.id}': {}
}
}
}
output AZURE_AIFOUNDRY_PROJECT_ID_PROJECT string = project_workspace.id
output AZURE_AIFOUNDRY_PROJECT_NAME_PROJECT string = project_workspace.name
output AZURE_AIFOUNDRY_PROJECT_RESOURCE_GROUP_PROJECT string = resourceGroup().name
output AZURE_AIFOUNDRY_PROJECT_ENDPOINT_PROJECT string = project_workspace.properties.discoveryUrl
resource connection_qazdrbswuvwkfewfrwcp 'Microsoft.MachineLearningServices/workspaces/connections@2025-01-01-preview' = {
parent: project_workspace
properties: {
authType: 'AAD'
isSharedToAll: true
sharedUserList: []
category: 'CognitiveSearch'
target: 'https://${searchservice.name}.search.windows.net/'
metadata: {
ApiType: 'Azure'
ResourceId: searchservice.id
location: location
}
}
name: guid(defaultName, 'connection', 'Project', 'AISearch')
}
resource connection_vxwdzretqhgneqwxyhbo 'Microsoft.MachineLearningServices/workspaces/connections@2025-01-01-preview' = {
parent: project_workspace
properties: {
authType: 'AAD'
isSharedToAll: true
sharedUserList: []
category: 'AIServices'
target: aiservices_account.properties.endpoint
metadata: {
ApiType: 'Azure'
ResourceId: aiservices_account.id
location: location
}
}
name: guid(defaultName, 'connection', 'Project', 'AIServices')
}
resource keyvalue_azureappconfigid 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_APPCONFIG_ID'
properties: {
value: configurationstore.id
}
}
resource keyvalue_azureappconfigname 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_APPCONFIG_NAME'
properties: {
value: configurationstore.name
}
}
resource keyvalue_azureappconfigresourcegroup 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_APPCONFIG_RESOURCE_GROUP'
properties: {
value: resourceGroup().name
}
}
resource keyvalue_azureappconfigendpoint 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_APPCONFIG_ENDPOINT'
properties: {
value: configurationstore.properties.endpoint
}
}
resource keyvalue_azureaiaiservicesidai 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AI_AISERVICES_ID_AI'
properties: {
value: aiservices_account.id
}
}
resource keyvalue_azureaiaiservicesnameai 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AI_AISERVICES_NAME_AI'
properties: {
value: aiservices_account.name
}
}
resource keyvalue_azureaiaiservicesresourcegroupai 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AI_AISERVICES_RESOURCE_GROUP_AI'
properties: {
value: resourceGroup().name
}
}
resource keyvalue_azureaiaiservicesendpointai 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AI_AISERVICES_ENDPOINT_AI'
properties: {
value: aiservices_account.properties.endpoint
}
}
resource keyvalue_azuresearchidsearch 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_SEARCH_ID_SEARCH'
properties: {
value: searchservice.id
}
}
resource keyvalue_azuresearchnamesearch 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_SEARCH_NAME_SEARCH'
properties: {
value: searchservice.name
}
}
resource keyvalue_azuresearchresourcegroupsearch 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_SEARCH_RESOURCE_GROUP_SEARCH'
properties: {
value: resourceGroup().name
}
}
resource keyvalue_azuresearchendpointsearch 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_SEARCH_ENDPOINT_SEARCH'
properties: {
value: 'https://${searchservice.name}.search.windows.net/'
}
}
resource keyvalue_azurestorageidstorage 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_STORAGE_ID_STORAGE'
properties: {
value: storageaccount.id
}
}
resource keyvalue_azurestoragenamestorage 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_STORAGE_NAME_STORAGE'
properties: {
value: storageaccount.name
}
}
resource keyvalue_azurestorageresourcegroupstorage 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_STORAGE_RESOURCE_GROUP_STORAGE'
properties: {
value: resourceGroup().name
}
}
resource keyvalue_azureblobsendpointstorage 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_BLOBS_ENDPOINT_STORAGE'
properties: {
value: storageaccount.properties.primaryEndpoints.blob
}
}
resource keyvalue_azurekeyvaultidvault 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_KEYVAULT_ID_VAULT'
properties: {
value: vault.id
}
}
resource keyvalue_azurekeyvaultnamevault 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_KEYVAULT_NAME_VAULT'
properties: {
value: vault.name
}
}
resource keyvalue_azurekeyvaultresourcegroupvault 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_KEYVAULT_RESOURCE_GROUP_VAULT'
properties: {
value: resourceGroup().name
}
}
resource keyvalue_azurekeyvaultendpointvault 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_KEYVAULT_ENDPOINT_VAULT'
properties: {
value: vault.properties.vaultUri
}
}
resource keyvalue_azureaifoundryhubidhub 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AIFOUNDRY_HUB_ID_HUB'
properties: {
value: hub_workspace.id
}
}
resource keyvalue_azureaifoundryhubnamehub 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AIFOUNDRY_HUB_NAME_HUB'
properties: {
value: hub_workspace.name
}
}
resource keyvalue_azureaifoundryhubresourcegrouphub 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AIFOUNDRY_HUB_RESOURCE_GROUP_HUB'
properties: {
value: resourceGroup().name
}
}
resource keyvalue_azureaifoundryprojectidproject 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AIFOUNDRY_PROJECT_ID_PROJECT'
properties: {
value: project_workspace.id
}
}
resource keyvalue_azureaifoundryprojectnameproject 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AIFOUNDRY_PROJECT_NAME_PROJECT'
properties: {
value: project_workspace.name
}
}
resource keyvalue_azureaifoundryprojectresourcegroupproject 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AIFOUNDRY_PROJECT_RESOURCE_GROUP_PROJECT'
properties: {
value: resourceGroup().name
}
}
resource keyvalue_azureaifoundryprojectendpointproject 'Microsoft.AppConfiguration/configurationStores/keyValues@2024-05-01' = {
parent: configurationstore
name: 'AZURE_AIFOUNDRY_PROJECT_ENDPOINT_PROJECT'
properties: {
value: project_workspace.properties.discoveryUrl
}
}
resource roleassignment_gxaeyfznpvgorjrkpllp 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftAppConfigurationconfigurationStores', environmentName, defaultName, 'ServicePrincipal', 'App Configuration Data Reader')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'516239f1-63e1-4d78-a4de-a74fb236a071'
)
}
scope: configurationstore
}
resource roleassignment_unxsuzdqhucrcsmcfuyc 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftAppConfigurationconfigurationStores', environmentName, defaultName, 'User', 'App Configuration Data Owner')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'5ae67dd6-50cb-40e7-96ff-dc2bfa4b606b'
)
}
scope: configurationstore
}
resource roleassignment_iwqyskxadwyqpexjwfcy 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftCognitiveServicesaccounts', environmentName, '${defaultName}-aiservices', 'ServicePrincipal', 'Cognitive Services OpenAI Contributor')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'a001fd3d-188f-4b5d-821b-7da978bf7442'
)
}
scope: aiservices_account
}
resource roleassignment_hmfasjqbixwvwxlvyigx 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftCognitiveServicesaccounts', environmentName, '${defaultName}-aiservices', 'ServicePrincipal', 'Cognitive Services Contributor')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'25fbc0a9-bd7c-42a3-aa1a-3b75d497ee68'
)
}
scope: aiservices_account
}
resource roleassignment_qiwviqlvorhviuoikyhn 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftCognitiveServicesaccounts', environmentName, '${defaultName}-aiservices', 'ServicePrincipal', 'Cognitive Services OpenAI User')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'
)
}
scope: aiservices_account
}
resource roleassignment_vqsitscwkobrdvlojpeo 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftCognitiveServicesaccounts', environmentName, '${defaultName}-aiservices', 'ServicePrincipal', 'Cognitive Services User')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'a97b65f3-24c7-4388-baec-2e87135dc908'
)
}
scope: aiservices_account
}
resource roleassignment_djccqiqwpzkgpvmsxtpg 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftCognitiveServicesaccounts', environmentName, '${defaultName}-aiservices', 'User', 'Cognitive Services OpenAI Contributor')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'a001fd3d-188f-4b5d-821b-7da978bf7442'
)
}
scope: aiservices_account
}
resource roleassignment_rgqwxelwqrhtwxkejhyc 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftCognitiveServicesaccounts', environmentName, '${defaultName}-aiservices', 'User', 'Cognitive Services Contributor')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'25fbc0a9-bd7c-42a3-aa1a-3b75d497ee68'
)
}
scope: aiservices_account
}
resource roleassignment_eiambevcfusbcnjuoefk 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftCognitiveServicesaccounts', environmentName, '${defaultName}-aiservices', 'User', 'Cognitive Services OpenAI User')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'
)
}
scope: aiservices_account
}
resource roleassignment_ulmeiktaicqeonwxbgkw 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftCognitiveServicesaccounts', environmentName, '${defaultName}-aiservices', 'User', 'Cognitive Services User')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'a97b65f3-24c7-4388-baec-2e87135dc908'
)
}
scope: aiservices_account
}
resource roleassignment_abzfoushrjbmnlrhqrnd 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftSearchsearchServices', environmentName, defaultName, 'ServicePrincipal', 'Search Index Data Contributor')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'8ebe5a00-799e-43f5-93ac-243d3dce84a7'
)
}
scope: searchservice
}
resource roleassignment_hvisesjfcmlfirhfodqk 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftSearchsearchServices', environmentName, defaultName, 'ServicePrincipal', 'Search Index Data Reader')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'1407120a-92aa-4202-b7e9-c0e197c71c8f'
)
}
scope: searchservice
}
resource roleassignment_hjoxkiksaauprlvmtajt 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftSearchsearchServices', environmentName, defaultName, 'ServicePrincipal', 'Search Service Contributor')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'7ca78c08-252a-4471-8644-bb5ff32d4ba0'
)
}
scope: searchservice
}
resource roleassignment_xbkkwfxuhxhkoubdvkgs 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftSearchsearchServices', environmentName, defaultName, 'User', 'Search Index Data Contributor')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'8ebe5a00-799e-43f5-93ac-243d3dce84a7'
)
}
scope: searchservice
}
resource roleassignment_fozyeqjragxsjygyqahr 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftSearchsearchServices', environmentName, defaultName, 'User', 'Search Index Data Reader')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'1407120a-92aa-4202-b7e9-c0e197c71c8f'
)
}
scope: searchservice
}
resource roleassignment_miizhpyelsmuregyflxu 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftSearchsearchServices', environmentName, defaultName, 'User', 'Search Service Contributor')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'7ca78c08-252a-4471-8644-bb5ff32d4ba0'
)
}
scope: searchservice
}
resource roleassignment_qdxwvfwdcxdhyslfngyw 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftStoragestorageAccountsblobServices', environmentName, storageaccount.name, 'default', 'ServicePrincipal', 'Storage Blob Data Contributor')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'ba92f5b4-2d11-453d-a403-e96b0029c9fe'
)
}
scope: blobservice
}
resource roleassignment_coargsxbrhdmojcevwkk 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftStoragestorageAccountsblobServices', environmentName, storageaccount.name, 'default', 'User', 'Storage Blob Data Contributor')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'ba92f5b4-2d11-453d-a403-e96b0029c9fe'
)
}
scope: blobservice
}
resource roleassignment_gcbdbuudnabzzeifflkj 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftKeyVaultvaults', environmentName, defaultName, 'ServicePrincipal', 'Key Vault Administrator')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'00482a5a-887f-4fb3-b363-3b7fe8e74483'
)
}
scope: vault
}
resource roleassignment_nqvjjhotidgzatrnakyo 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftKeyVaultvaults', environmentName, defaultName, 'User', 'Key Vault Administrator')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'00482a5a-887f-4fb3-b363-3b7fe8e74483'
)
}
scope: vault
}
resource roleassignment_spqbmvwxoqzqsqzxfotj 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftMachineLearningServicesworkspaces', environmentName, '${defaultName}-project', 'ServicePrincipal', 'Contributor')
properties: {
principalId: userassignedidentity.properties.principalId
principalType: 'ServicePrincipal'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'b24988ac-6180-42a0-ab88-20f7382dd24c'
)
}
scope: project_workspace
}
resource roleassignment_jrohwqfrqxqaoskjukqf 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftMachineLearningServicesworkspaces', environmentName, '${defaultName}-project', 'User', 'Contributor')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'b24988ac-6180-42a0-ab88-20f7382dd24c'
)
}
scope: project_workspace
}
resource roleassignment_kvjoxlocbytxyhtrwdln 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid('MicrosoftResourcesresourceGroups', environmentName, defaultName, 'User', 'App Configuration Data Owner')
properties: {
principalId: principalId
principalType: 'User'
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
'5ae67dd6-50cb-40e7-96ff-dc2bfa4b606b'
)
}
scope: resourceGroup()
}
|